Using OAuth to access Twitter API
In order to have access to the Twitter API, we will use a Token-Based Authentication system. Twitter applications are required to use OAuth, which is an open standard for authorization. OAuth allows Twitter users to enter their username and password in order to obtain four strings (Token). The Token allows users to connect to the Twitter API without using their username and password. In this chapter, we will use the current version of Twitter REST API, 1.1, released on June 11, 2013, which established the use of OAuth authentication as mandatory to retrieve data from Twitter.
Tip
For more information about Token-Based Authentication systems, please refer to this link:
First, we need to follow this link and sign in with our Twitter username and password, as shown in the following screenshot:
Then, we click on the Create a new application button (see following screenshot) and enter the application details:
- Name...