Tweeting from the Galileo board
We are now going to see how to send a tweet from the Galileo board. In this recipe, we will see how to interface with Twitter and send a tweet from the board. In the other recipes in the book, you will be able to tweet data measured by your board. To do this, we will interact with the Twitter API.
Getting ready
Before we can start writing our application, we need to create an account on Twitter, and then an application. To do so, simply go to https://apps.twitter.com/.
You will then be able to create a new application, I already had an application from a previous project, as shown in this screenshot:
You will then be able to give a name to your application, as seen in the following screenshot:
Then, you will get your API key and API secret, which will be useful information for the rest of this recipe:
These keys are linked to the Twitter app you created, and will be used to generate access tokens for your app. On the same page, you will also find your Access Token...