How do you correctly send the oauth_verifier parameter using python-oauth2 and the Twitter API?
5th December 2010
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
- Weeknotes: the Datasette Cloud API, a podcast appearance and more - 1st October 2023
- Things I've learned about building CLI tools in Python - 30th September 2023
- Talking Large Language Models with Rooftop Ruby - 29th September 2023
- Weeknotes: Embeddings, more embeddings and Datasette Cloud - 17th September 2023
- Build an image search engine with llm-clip, chat with models with llm chat - 12th September 2023
- LLM now provides tools for working with embeddings - 4th September 2023
- Datasette 1.0a4 and 1.0a5, plus weeknotes - 30th August 2023
- Making Large Language Models work for you - 27th August 2023
- Datasette Cloud, Datasette 1.0a3, llm-mlc and more - 16th August 2023
- How I make annotated presentations - 6th August 2023