View Source HueSDK.API.Resourcelinks (HueSDK v0.1.1)

Interface to the Resourcelinks API.

See the official documentation for more information.

Link to this section Summary

Functions

Creates a new resourcelink in the bridge and generates a unique identifier for this resourcelink.

Deletes the specified resourcelink from the bridge.

Gets a list of all resourcelinks that are in the bridge.

Updates individual or multiple attributes of an existing resourcelink. At least one attribute has to be provided.

Link to this section Functions

Link to this function

create_resourcelink(bridge, attributes)

View Source
@spec create_resourcelink(HueSDK.Bridge.t(), map()) :: HueSDK.HTTP.response()

Creates a new resourcelink in the bridge and generates a unique identifier for this resourcelink.

Link to this function

delete_resourcelink(bridge, resourcelink_id)

View Source
@spec delete_resourcelink(HueSDK.Bridge.t(), String.t()) :: HueSDK.HTTP.response()

Deletes the specified resourcelink from the bridge.

Link to this function

get_all_resourcelinks(bridge)

View Source
@spec get_all_resourcelinks(HueSDK.Bridge.t()) :: HueSDK.HTTP.response()

Gets a list of all resourcelinks that are in the bridge.

Link to this function

update_resourcelink(bridge, resourcelink_id, attributes)

View Source
@spec update_resourcelink(HueSDK.Bridge.t(), String.t(), map()) ::
  HueSDK.HTTP.response()

Updates individual or multiple attributes of an existing resourcelink. At least one attribute has to be provided.