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 |
---|---|---|---|
body | AuthenticateRequest | ❌ | The request body. |
Return Type
Response[]
Example Usage Code Snippet
import { AuthenticateRequest, OpenHue } from 'open-hue';
(async () => {
const openHue = new OpenHue({
apiKey: 'YOUR_API_KEY',
});
const input: AuthenticateRequest = {
devicetype: 'app_name#instance_name',
generateclientkey: true,
};
const { data } = await openHue.auth.authenticate(input);
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs