View Channel October 7, 2017

Overview

The View Channel call is used to retrieve the metadata associated with a specific channel. In the majority of cases each channel is a separate sensor device.

API URL

http://api.ubibot.io/channels/CHANNEL_ID?parameters

Where CHANNEL_ID is the ID of the target channel.

HTTP Method

GET

URL Parameters

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.

Response

200 Success. 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.io/channels/123?account_key=xxxxx-xxxxx-xxxxx-xxxx

This returns a JSON object listing all the metadata for the specified channel. For example: