-
-
Notifications
You must be signed in to change notification settings - Fork 78
Closed
Description
The tumblr oauth docs are insanely complicated. I've found a far easier way of getting an Oauth Token and the Oauth Token Secret
Install requests-oauthlib
python -m pip install requests_oauthlibRun the following in a python console:
# Credentials from the application page
key = '<the app key>'
secret = '<the app secret>'
# OAuth URLs given on the application page
request_token_url = 'http://www.tumblr.com/oauth/request_token'
authorization_base_url = 'http://www.tumblr.com/oauth/authorize'
access_token_url = 'http://www.tumblr.com/oauth/access_token'
# Fetch a request token
from requests_oauthlib import OAuth1Session
tumblr = OAuth1Session(key, client_secret=secret, callback_uri='http://www.tumblr.com/dashboard')
tumblr.fetch_request_token(request_token_url)A response like the following should appear:
{'oauth_token': 'REDACTED', 'oauth_token_secret': 'REDACTED', 'oauth_callback_confirmed': 'true'}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels