ThingTweet

Updated ThingSpeak Documentation is now located in ThingSpeak Docs. For support, use the ThingSpeak Forum.

 
The ThingTweet App allows you to update a Twitter status via ThingSpeak. Twitter requires Open Authentication (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.

App Setup

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 URI for Status Updates

[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!

14 comments

  1. Hi,
    What is the minimum update time for thingtweet?
    Is it 15 seconds as for channels update?
    Thanks
    Davide

    1. Davide,
      If you are updating a ThingSpeak Channel via ThingTweet then the normal 15 sec API rate limit applies.
      Hope that helps,
      Hans

      1. hello, may sound silly, but i m not able to get it right as i get errors. can i get the full html code with the form tag to arrive at the above results? i am new to this but just be passion on me 🙂 ….. i mean :
        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!

  2. If I’m sending the same tweets in short timeperiods and they get blocked. Where does this happens? In the Thingsspeak API or at twitter? Is there a possibility to send a “submission ID” to bypass this filtering step?

  3. Hi
    Help mi please.
    I fail to complete the authorization process of the app. In Twitter the app is seen as authorized, but to return to the homepage ThingTweet returns me the message “failed link Twitter”

  4. Hi,
    Could I use ThingTweet to use API Twitter “update_with_media”. Is there any ongoing development about this?
    Using API “update” works perfect!
    Best regards,

    1. Sebastian,
      I am glad /update is working for you. We never thought of supporting “update_with_media” before you suggested it. What type of device would be posting with media? We will consider that as an option.
      Thanks,
      Hans

      1. Hi Hans,
        I am working on a project with arduino ethernet. At the begining i started working with the API TwitPic but I was not able to use it succesfuly and the code to do it was very long.
        Posting with ThingTweet is great and code needed is very short (which is appreciated by the sketch 🙂 ).
        I would like to have the option to upload an image along with the status in Twitter, by using an “HTML Post” with ThingTweet of ThingSpeak.
        Best regards,
        Sebastián

  5. I keep getting a “Dropping Connection – No 200 OK” error whenever I try to send a Tweet. Is this because of Twitter’s new API?

  6. Thank you very much it’s really awesome way to interface my controller kit to Tweeter – API !
    Successfully got the output!!

Comments are closed.