Giter VIP home page Giter VIP logo

Comments (4)

rbw avatar rbw commented on July 22, 2024

Hello!

Are you trying to import session like in the usage examples here?:
http://pysnow.readthedocs.io/en/latest/full_examples/oauth_client.html

Pysnow doesn't have a module called session, this was just an (fictive) example. You'll need to implement the actual storage yourself. The token can be stored in a database, session, file or whatever you wish.

Does that make sense? Let me know if you need any help.

Regards,
Robert

from pysnow.

rbw avatar rbw commented on July 22, 2024

I'll update the docs in the next version to clarify this.

from pysnow.

rbw avatar rbw commented on July 22, 2024

I've updated the OAuth example here:
http://pysnow.readthedocs.io/en/latest/full_examples/oauth_client.html

Grab that code, set the instance name and credentials and you should be good to go.

Note that this code doesn't provide any persistence mechanism, the store here is just a basic dict. This means OAuthClient.generate_token will be called every time you execute this code, which introduces a significant overhead.

So.. store here should be changed to a real store of your application / script (this could be a database, session, file or whatever you like).

from pysnow.

kglg94 avatar kglg94 commented on July 22, 2024

Thank You:)

from pysnow.

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.