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
- My AI/LLM predictions for the next 1, 3 and 6 years, for Oxide and Friends - 10th January 2025
- Weeknotes: Starting 2025 a little slow - 4th January 2025
- I still don't think companies serve you ads based on spying through your microphone - 2nd January 2025