Send Status Updates using the ThingTweet App

The ThingTweet App allows you to update a Twitter status via ThingSpeak. Twitter requires Open Authentation (OAuth) which is difficult for a low level device to interface with. ThingTweet acts a Twitter proxy, so the device can use Twitter by making simple API calls.

Setup ThingTweet App

Sign in to https://thingspeak.com/login, select Apps from the menu, and then click on ThingTweet.
Under the ThingTweet App, select “Link new Twitter account”. This will redirect you to Twitter to see if you want the app to have the ability to access your account. You can Allow or Deny the process. Once you have confirmed the right Twitter account, Twitter will send you back to ThingSpeak.
The app generates a ThingTweet API Key for you to use. If you send an HTTP POST with your ThingTweet API Key, then the message will be relayed to Twitter. All of the parameters from the Twitter API (statuses/update) are possible including geolocation.

ThingTweet App URL

To send updates to Twitter via the ThingTweet App, send an HTTP POST to the following URL:
[cce]http://api.thingspeak.com/apps/thingtweet/1/statuses/update[/cce]

Example HTTP POST

POST /apps/thingtweet/1/statuses/update HTTP/1.1
Host: api.thingspeak.com
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: (number of characters in message)

api_key=(thingtweet_api_key)&status=I just posted this from my thing!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.