Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

python-fitbit troubleshooting

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.

 

At this point, I am trying to work with the python-fitbit package, and I'm passing the gather_keys script in my command line

 

I'm typing in

python gather_keys_oauth2.py client_id=*** client_secret=***

This launches my browswer 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?

 

The package is found at https://github.com/orcasgit/python-fitbit

 

Thanks in advance!

 

 

Best Answer
0 Votes
1 REPLY 1

As a followup, I've also tried this git clone

 

https://github.com/magnific0/FitBit.py and am getting to the same error message, so I'm wondering if I'm doing something wrong in the webportal side of things.

 

I modified the FitBit.py file to have my client id and secret and redirect uri. when i run the code, i get the url to go to, which then gives me a code.

 

When I hurl the code, I get the same error message as using the other python wrapper. So at least I'm systematically bad at this...

 

 

HEADERS

Cache-Control: no-cache, private
Cf-Ray: 2eeb700ec86757b3-IAD
Connection: keep-alive
Content-Encoding: gzip
Content-Language: en-US
Content-Type: application/json;charset=utf-8
Date: Sat, 08 Oct 2016 17:50:53 GMT
Server: cloudflare-nginx
Transfer-Encoding: chunked
Vary: Accept-Encoding
Www-Authenticate: Bearer realm="api.fitbit.com"
X-Frame-Options: SAMEORIGIN
BODY view raw

{
"errors": [
{
"errorType": "invalid_client",
"message": "Invalid authorization header format. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."
}
],
"success": false
}

 

Any ideas on what I could be doing wrong? Thanks!

Best Answer
0 Votes