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
- Gemini 2.0 Flash: An outstanding multi-modal LLM with a sci-fi streaming mode - 11th December 2024
- ChatGPT Canvas can make API requests now, but it's complicated - 10th December 2024
- I can now run a GPT-4 class model on my laptop - 9th December 2024