The Get Channels call will return a JSON object listing the metadata and last sensor data for every channel associated with a user. In the majority of cases each channel is a separate sensor device.
GET
Name | Type | Required | Description |
account_key or token_id | String | Required | 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 all channels associated with the specified user.
Error: See the separate list of error codes for more details.
GET https://api.ubibot.com/channels?account_key=xxxxx-xxxxx-xxxxx-xxxx
The response is a JSON object containing a list of channels with their associated metadata. For example: