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.
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:
Then, you will get your API key and API secret, which will be useful information for the rest of this recipe: