The following subchapter will show you how to connect to different social networks and how to retrieve sample data.
Twitter proposes three main APIs: the REST API, Streaming API, and the Ads API. We will be focused on the first two APIs, which provide respectively on-demand or stream data.
As explained in the section about OAuth, you have to obtain credentials to be able to collect data from Twitter. There are some simple steps to perform this action:
- Create a Twitter account or use your existing one.
- Go to https://apps.twitter.com/ and log in with your account.
- Click on
Create your app
and submit your phone number. A valid phone number is required for the verification process. You can use your mobile phone number for one account only. - Fill the form, agree to the terms and conditions, and create your Twitter application.
- Go to the
Keys and Access Tokens
tab, save your API key, and API secret and then click onCreate my access token
to obtain the Access...