How do you correctly send the oauth_verifier parameter using python-oauth2 and the Twitter API?
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:
More recent articles
- ChatGPT should include inline tips - 30th May 2023
- Lawyer cites fake cases invented by ChatGPT, judge is not amused - 27th May 2023
- llm, ttok and strip-tags - CLI tools for working with ChatGPT and other LLMs - 18th May 2023
- Delimiters won't save you from prompt injection - 11th May 2023
- Weeknotes: sqlite-utils 3.31, download-esm, Python in a sandbox - 10th May 2023
- Leaked Google document: "We Have No Moat, And Neither Does OpenAI" - 4th May 2023
- Midjourney 5.1 - 4th May 2023
- Prompt injection explained, with video, slides, and a transcript - 2nd May 2023
- download-esm: a tool for downloading ECMAScript modules - 2nd May 2023
- Let's be bear or bunny - 1st May 2023