Skip to content

Instantly share code, notes, and snippets.

@terrycojones
Created March 31, 2012 01:41
Show Gist options
  • Save terrycojones/2258544 to your computer and use it in GitHub Desktop.
Save terrycojones/2258544 to your computer and use it in GitHub Desktop.
# In the following line, url = http://api.tumblr.com/v2/user/info/
req = oauth.Request(method='POST', url=url, parameters=params)
## Sign the request.
signature_method = oauth.SignatureMethod_HMAC_SHA1()
req.sign_request(signature_method, self.consumer, self.token)
resp, content = self.client.request(req.to_url(), 'POST', headers=self.headers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment