orcasgit / python-fitbit

Fitbit API Python Client Implementation
Other
623 stars 330 forks source link

trouble with gather-keys #103

Open bretzelpretzel opened 8 years ago

bretzelpretzel commented 8 years ago

Hello,

I'm a newbie and I'm very confused, so apologies. I've tried three php wrappers and now I'm on my 2nd python wrapper, and I still can't seem to get log in to fitbit.

I'm typing in python gather_keys_oauth2.py client_id=*** client_secret=***

This launches my browser and links me to fitbit's page, but I get the error message: "Developer information: unauthorized_client - Invalid client_id"

I've confirmed that it is the correct client_id. Can someone help explain what I might be doing wrong?

Thanks in advance!

lrpina commented 7 years ago

Hello!

The only thing I can think of off the top of my head is that your redirect_uri does not match what you have in your fitbit app client settings. You have to manually set that in the initializer for the OAuth2Server object (init).

dscerri commented 7 years ago

The arguments to the script should not include 'client_id=' or 'client_secret='.

So the script should be run like this for example:

python gather_keys_oauth2.py 1234S5 d18508414c3099002ce1fb