How do you correctly send the oauth_verifier parameter using python-oauth2 and the Twitter API?
5th December 2010
My answer to How do you correctly send the oauth_verifier parameter using python-oauth2 and the Twitter API? on Quora
This seems relevant: http://groups.google.com/group/t...
Aha! I think I’ve solved it. Twitter doesn’t send the oauth_verifier argument unless you specify an oauth_callback when requesting the request token.
Here’s a related discussion:
https://github.com/simplegeo/pyt...So, my solution was to use this:
resp, content = client.request(request_token_url, “POST”,
body = ’oauth_callback=http://lanyrd.com/twitter/done/’
)
And then later, in my callback function:
if ’oauth_verifier’ in request.GET:
token.set_verifier(request.GET[’oauth_verifier’])
More recent articles
- Notes from Bing Chat—Our First Encounter With Manipulative AI - 19th November 2024
- Project: Civic Band - scraping and searching PDF meeting minutes from hundreds of municipalities - 16th November 2024
- Qwen2.5-Coder-32B is an LLM that can code well that runs on my Mac - 12th November 2024