Merge branch 'master' of github:ryanmcgrath/twython
This commit is contained in:
commit
d379ffc69b
2 changed files with 4 additions and 4 deletions
|
|
@ -115,7 +115,7 @@ Handling the Callback
|
|||
|
||||
If your application is a Desktop or Mobile Application *oauth_verifier* will be the PIN code
|
||||
|
||||
After they authorize your application to access some of their account details, they'll be redirected to the callback url you specified in ``get_autentication_tokens``
|
||||
After they authorize your application to access some of their account details, they'll be redirected to the callback url you specified in ``get_authentication_tokens``
|
||||
|
||||
You'll want to extract the ``oauth_verifier`` from the url.
|
||||
|
||||
|
|
@ -134,10 +134,10 @@ Now that you have the ``oauth_verifier`` stored to a variable, you'll want to cr
|
|||
|
||||
final_step = twitter.get_authorized_tokens(oauth_verifier)
|
||||
|
||||
Once you have the final user tokens, store them in a database for later use!::
|
||||
Once you have the final user tokens, store them in a database for later use::
|
||||
|
||||
OAUTH_TOKEN = final_step['oauth_token']
|
||||
OAUTH_TOKEN_SECERT = final_step['oauth_token_secret']
|
||||
OAUTH_TOKEN_SECRET = final_step['oauth_token_secret']
|
||||
|
||||
For OAuth 2 (Application Only, read-only) authentication, see `our documentation <https://twython.readthedocs.org/en/latest/usage/starting_out.html#oauth-2-application-authentication>`_
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ Create a Twython instance with your application keys and the users OAuth tokens
|
|||
.. code-block:: python
|
||||
|
||||
from twython import Twython
|
||||
twitter = Twython(APP_KEY, APP_SECRET
|
||||
twitter = Twython(APP_KEY, APP_SECRET,
|
||||
OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
|
||||
|
||||
User Information
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue