O'Reilly logo

Storm Blueprints: Patterns for Distributed Real-time Computation by Brian O'Neill, P. Taylor Goetz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Connecting to the Twitter stream

In order to connect to the Twitter API, we must first generate a set of OAuth tokens that will enable our application to authenticate with Twitter. This is done by creating a Twitter application that is associated with your account and then authorizing that application to access your account. If you do not already have a Twitter account, create one now and log in to it. Once you are logged in to Twitter, generate the OAuth tokens by following these steps:

  1. Go to https://dev.twitter.com/apps/new and log in if necessary.
  2. Enter a name and description for your application.
  3. Enter a URL for your application. In our case, the URL is unimportant since we're not creating an app that will be distributed like a mobile app. Entering ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required