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
- Qwen2.5-Coder-32B is an LLM that can code well that runs on my Mac - 12th November 2024
- Visualizing local election results with Datasette, Observable and MapLibre GL - 9th November 2024
- Project: VERDAD - tracking misinformation in radio broadcasts using Gemini 1.5 - 7th November 2024