Skip to content

Instantly share code, notes, and snippets.

@codingjester
Created March 31, 2012 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codingjester/2258390 to your computer and use it in GitHub Desktop.
Save codingjester/2258390 to your computer and use it in GitHub Desktop.
Simple Python Gist for the Tumblr API
#!/usr/bin/env python
import oauth2 as oauth
consumer = oauth.Consumer('consumer_key','consumer_secret')
token = oauth.Token('oauth_key', 'oauth_secret')
client = oauth.Client(consumer, token)
print client.request("http://api.tumblr.com/v2/user/info", "POST")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment