Voir la chaîne 2022-07-26

Overview

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.

API URL

https://api.ubibot.com/channels/CHANNEL_ID?parameters

Where CHANNEL_ID is the ID of the target channel.

HTTP Method

GET

URL Parameters

NameTypeRequiredDescription
account_key or token_idStringRequired for private channelsSpecify the API write key or read key of the channel or the token_id obtained after the user logged in.

Response

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.

Examples

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: