<%= render 'response' %>
Get Status Updates
To view a Channel's status updates, send an HTTP GET to <%= @ssl_api_domain %>channels/CHANNEL_ID/status.json.xml
,
replacing CHANNEL_ID with the ID of your Channel.
Valid parameters:
- api_key (string) Read API Key for this specific Channel (optional--no key required for public channels)
- timezone (string) Timezone identifier for this request (optional)
- offset (integer) Timezone offset that results should be displayed in. Please use the timezone parameter for greater accuracy. (optional)
- callback (string) Function name to be used for JSONP cross-domain requests (optional)
Example GET:
GET <%= @ssl_api_domain %>channels/1417/status.json.xml
The response will be a JSON object of Channel statuses, for example:
{
"channel":
{
"name": "CheerLights",
"latitude": "40.5",
"longitude": "-80.22"
},
"feeds":
[
{
"created_at": "2014-02-26T02:28:01Z",
"entry_id": 11888,
"status": "@cheerlights green"
},
{
"created_at": "2014-02-26T22:05:31Z",
"entry_id" :11889,
"status": "@cheerlights blue"
}
]
}