GithubHelp home page GithubHelp logo

Comments (2)

mart-e avatar mart-e commented on July 4, 2024

Not sure to understand your question. The library do use noce, timestamp and version number.

oauth = OAuth1(my_client_key, client_secret=my_client_secret)
r = requests.post(url=request_token_url, auth=oauth)

produce the HTTP request

POST /oauth/request_token?oauth_callback=oob HTTP/1.1
Host: api.twitter.com
Authorization: OAuth oauth_nonce="7845272804951018381363985206", oauth_timestamp="1363985206", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_consumer_key="tJ9F10gOpAMLzvEBinWsUA", oauth_signature="76561OLGylFKm1ZmmGz2gQSBpWk%3D"

The reason you don't see these arguments in the requests-oauthlib code is probably because all the computation is done in the oauthlib (dependecy) library.

from requests-oauthlib.

lv10 avatar lv10 commented on July 4, 2024

Thanks for the response. I was doing something wrong after playing with it for a little longer and reading other examples of code online I was able to figure it out.

from requests-oauthlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.