Python-twitter API help
I have just started using the python-twitter API and it requires me to register the app for the authorization using OAuth.
But when i register with twitter it asks for a Application website.
Now the app I am creating is very basic I don't wish to share as I am doing this just for learning purpose开发者_如何学Pythons and I don't have website.
So what do I do???
Have you already read this?
Twitter REST API Method: oauth authorize
and from there this:
Authentication
Desktop Clients
The traditional OAuth flow for desktop clients can be cumbersome. We've created a PIN-based experience for destkop clients that use the following flow:
The application uses oauth/request_token to obtain a request token from twitter.com.
The application directs the user to oauth/authorize on twitter.com.
After obtaining approval from the user, a prompt on twitter.com will display a 7 digit PIN.
The user is instructed to copy this PIN and return to the appliction.
The application will prompt the user to enter the PIN from step 4.
The application uses the PIN as the value for the oauth_verifier parameter in a call to oauth/access_token which will verify the PIN and exchange a request_token for an access_token.
Twitter will return an access_token for the application to generate subsequent OAuth signatures.
精彩评论