The View Channel call is used to retrieve the metadata and last sensor data associated with a specific channel. In the majority of cases each channel is a separate sensor device.
Where CHANNEL_ID is the ID of the target channel.
GET
Name | Type | Required | Description |
account_key or token_id | String | Required for private channels | Specify the API write key or read key of the channel or the token_id obtained after the user logged in. |
An HTTP code of 200 is responded for each successful data requests. The message body contains a JSON object listing the metadata for the specified channel.
Error: See the separate list of error codes for more details.
The field value of “write_key” can be used to update Channel Feed.
GET https://api.ubibot.com/channels/123?account_key=xxxxx-xxxxx-xxxxx-xxxx
This returns a JSON object listing all the metadata for the specified channel. For example: