Skip to content

Add to wiki: How to get the tumblr oauth tokens #50

@ItsIgnacioPortal

Description

@ItsIgnacioPortal

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_oauthlib

Run 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'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions