AuthService
A list of all methods in the AuthService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
authenticate | Authenticate to retrieve the HUE application key. Requires to go and press the button on the bridge |
authenticate
Authenticate to retrieve the HUE application key. Requires to go and press the button on the bridge
- HTTP Method:
POST
- Endpoint:
/api
Parameters
Name | Type | Required | Description |
---|---|---|---|
request_body | AuthenticateRequest | ❌ | The request body. |
Return Type
List[Response]
Example Usage Code Snippet
from open_hue import OpenHue, Environment
from open_hue.models import AuthenticateRequest
sdk = OpenHue(
api_key="YOUR_API_KEY",
api_key_header="YOUR_API_KEY_HEADER",
base_url=Environment.DEFAULT.value
)
request_body = AuthenticateRequest(
devicetype="app_name#instance_name",
generateclientkey=True
)
result = sdk.auth.authenticate(request_body=request_body)
print(result)
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs