Skip to main content

BridgeService

A list of all methods in the BridgeService service. Click on the method name to view detailed information about that method.

MethodsDescription
getBridgesList all available bridges
getBridgeGet details of a single bridge from its given {bridgeId}.
updateBridgeUpdate a single bridge from its given {bridgeId}.

getBridges

List all available bridges

  • HTTP Method: GET
  • Endpoint: /clip/v2/resource/bridge

Return Type

GetBridgesOkResponse

Example Usage Code Snippet

import { OpenHue } from 'open-hue';

(async () => {
const openHue = new OpenHue({
apiKey: 'YOUR_API_KEY',
});

const { data } = await openHue.bridge.getBridges();

console.log(data);
})();

getBridge

Get details of a single bridge from its given {bridgeId}.

  • HTTP Method: GET
  • Endpoint: /clip/v2/resource/bridge/{bridgeId}

Parameters

NameTypeRequiredDescription
bridgeIdstringID of the bridge

Return Type

GetBridgeOkResponse

Example Usage Code Snippet

import { OpenHue } from 'open-hue';

(async () => {
const openHue = new OpenHue({
apiKey: 'YOUR_API_KEY',
});

const { data } = await openHue.bridge.getBridge('bridgeId');

console.log(data);
})();

updateBridge

Update a single bridge from its given {bridgeId}.

  • HTTP Method: PUT
  • Endpoint: /clip/v2/resource/bridge/{bridgeId}

Parameters

NameTypeRequiredDescription
bodyBridgePutThe request body.
bridgeIdstringID of the bridge

Return Type

UpdateBridgeOkResponse

Example Usage Code Snippet

import { BridgePut, OpenHue } from 'open-hue';

(async () => {
const openHue = new OpenHue({
apiKey: 'YOUR_API_KEY',
});

const bridgePutType = BridgePutType.bridge;

const input: BridgePut = {
type_: bridgePutType,
};

const { data } = await openHue.bridge.updateBridge('bridgeId', input);

console.log(data);
})();

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →