Git Product home page Git Product logo

Comments (8)

resolS avatar resolS commented on August 17, 2024

I think this
access_token=server.oauth.token['access_token'],
refresh_token=server.oauth.token['refresh_token']

should read like this

access_token=server.oauth.token.session['access_token']
refresh_token=server.oauth.token.session['refresh_token']

in both auth_fitbit.py and remote.py

from fitbit-googlefit.

pkpio avatar pkpio commented on August 17, 2024

@resolS , At first I wondered if something may have changed in the authentication process but I just tried authenticating with the current version of the repo and it works. It's probably your browser? Which browser are you using to authenticate?

from fitbit-googlefit.

resolS avatar resolS commented on August 17, 2024

I tried using Google Chrome and Microsoft Edge, same issue on both.
I'm running Windows 10.

I went to the original version of the file you used and just took the info I obtained from that and manually added it into the JSON
https://github.com/orcasgit/python-fitbit/blob/master/gather_keys_oauth2.py

I then made the ".session" change in the remote.py file and it all works now :)

from fitbit-googlefit.

pkpio avatar pkpio commented on August 17, 2024

Hmm. Strange that it works for me without any changes - I tested on Mac, Windows 10 (2 months ago) and Linux. Will see if the ".session" change would also work for me.

from fitbit-googlefit.

pkpio avatar pkpio commented on August 17, 2024

@resolS Thanks for pointing it out and also, coming up with a fix!

from fitbit-googlefit.

resolS avatar resolS commented on August 17, 2024

@praveendath92 Thanks for making this awesome tool!

from fitbit-googlefit.

pkpio avatar pkpio commented on August 17, 2024

@resolS , It looks like this is caused by an update in one of the dependencies. Since you are the one who noticed and fixed this issue, would you like to fix it and create a pull request? I can also fix this myself but I want to check with you first.

from fitbit-googlefit.

resolS avatar resolS commented on August 17, 2024

No, you go ahead :)

from fitbit-googlefit.

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.