Authentication for the new Twitter API 1.1

I have an application that should display the number of followers and the following ( users/show.json) for a random user on a public page (authentication is not required). With Twitter API 1.0, this was pretty simple since authentication is not needed for the request. With the new API, Twitter 1.1 is no longer possible, so I need to authenticate the request (through OAuth ).

Is it only possible to "authenticate" the application, not the user? I mean: can I ask the user to log in and only authenticate with the application key / secret? Or each time I need to create a token with user credentials, creating a callback, etc.?

+5
source share
2 answers

Yes it is possible! If your application does not need to do such things as message statuses or send direct messages on behalf of a user, you should be able to receive all public information of a user with one hard-set set of OAuth tweeters and does not require user authentication.

  • Log in to Twitter and go to the developer toolbar https://dev.twitter.com/apps
  • Register a new application; after registering the application, view the details of the application. You will see the "OAuth Tool" tab, where you will find all the relevant OAuth values ​​for this application: consumer key, consumer secret, access token and secret access token.
  • , API Twitter.

API Twitter , API- - , Temboo SDK, ( Twitter, ).

:

( : Temboo.)

+8

, , - API- Twitter API 1.1, API. . . Python get_bearer_token.py.

-, - .

+1

All Articles