O'Reilly logo

RESTful Java Patterns and Best Practices by Bhakti Mehta

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

Overview of the Twitter API

The Twitter API has REST APIs and Streaming APIs, which allow developers to access core data such as timelines, status data, user information, and so on.

Twitter uses three-legged OAuth to make requests.

Note

Important aspects of OAuth with Twitter API

The client application doesn't need to store a login ID and password. The application sends an access token representing the user with each request instead of using user credentials.

The POST variables, query parameters, and the URL of the request always remain intact for a request to successfully complete.

The user decides what applications can act on his behalf and can remove authorization at any time.

A unique identifier for each request (the oauth_nonce identifier) prevents ...

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