LightLevelService
A list of all methods in the LightLevelService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
GetLightLevelsAsync | List all available light levels. |
GetLightLevelAsync | Get details of a single light from its given {lightId} . |
UpdateLightLevelAsync | Update a single light from its given {lightId} . |
GetLightLevelsAsync
List all available light levels.
- HTTP Method:
GET
- Endpoint:
/clip/v2/resource/light_level
Return Type
GetLightLevelsOkResponse
Example Usage Code Snippet
using OpenHue;
var client = new OpenHueClient();
var response = await client.LightLevel.GetLightLevelsAsync();
Console.WriteLine(response);
GetLightLevelAsync
Get details of a single light from its given {lightId}
.
- HTTP Method:
GET
- Endpoint:
/clip/v2/resource/light_level/{lightId}
Parameters
Name | Type | Required | Description |
---|---|---|---|
lightId | string | ✅ | ID of the light |
Return Type
GetLightLevelOkResponse
Example Usage Code Snippet
using OpenHue;
var client = new OpenHueClient();
var response = await client.LightLevel.GetLightLevelAsync("lightId");
Console.WriteLine(response);
UpdateLightLevelAsync
Update a single light from its given {lightId}
.
- HTTP Method:
PUT
- Endpoint:
/clip/v2/resource/light_level/{lightId}
Parameters
Name | Type | Required | Description |
---|---|---|---|
input | LightLevelPut | ❌ | The request body. |
lightId | string | ✅ | ID of the light |
Return Type
UpdateLightLevelOkResponse
Example Usage Code Snippet
using OpenHue;
using OpenHue.Models;
var client = new OpenHueClient();
var input = new LightLevelPut();
var response = await client.LightLevel.UpdateLightLevelAsync(input, "lightId");
Console.WriteLine(response);
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs