How to do it...

  1. Create a Twitter account if you do not already have one.
  2. Go to
  3. Click on Create New App.
  4. Fill out the Name, Description, Website, and Callback URL fields and then click on Create your Twitter Application. You will receive a screen like this:
  1. You will reach the Application Management screen.
  2. Navigate to Keys and Access Tokens | Create my access Token:
  1. Note down the four values on this screen; we will use them in step 14:
  • Consumer key (the API Key)
  • Consumer secret (the API Secret)
  • Access token

Get Apache Spark 2.x Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.