<%= render 'response' %>
Update Channel Feed
To update a Channel feed, send an HTTP GET or POST to
<%= @ssl_api_domain %>update.json.xml
.
Valid parameters:
- api_key (string) - Write API Key for this specific Channel (required). The Write API Key can optionally be sent via an X-THINGSPEAKAPIKEY HTTP header.
- field1 (string) - Field 1 data (optional)
- field2 (string) - Field 2 data (optional)
- field3 (string) - Field 3 data (optional)
- field4 (string) - Field 4 data (optional)
- field5 (string) - Field 5 data (optional)
- field6 (string) - Field 6 data (optional)
- field7 (string) - Field 7 data (optional)
- field8 (string) - Field 8 data (optional)
- lat (decimal) - Latitude in degrees (optional)
- long (decimal) - Longitude in degrees (optional)
- elevation (integer) - Elevation in meters (optional)
- status (string) - Status update message (optional)
- twitter (string) - Twitter username linked to ThingTweet (optional)
- tweet (string) - Twitter status update (optional)
- created_at (datetime) - Date when this feed entry was created, in the format
YYYY-MM-DD%20HH:NN:SS (optional)
Example POST:
POST <%= @ssl_api_domain %>update.json.xml
api_key=<%= @channel_api_key %>
field1=73
The response will be the entry ID of the update, for example: 18
If the response is 0
then the update failed.