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

Need help with API access

So I'm in the process of creating my own app on a Raspberry Pi in Python.  I want the app to connect to the Fitbit API and collect the data from my weekly runs so that I can compare them.  I've been using the information from the Web API Explorer, and I've been having a lot of success.  But at the top of that page, it says, "These Swagger UI docs do not currently support making Fitbit API requests directly. In order to make a request, construct a request for the appropriate endpoint using this documentation, and then add an Authorization header to each request with an access token obtained using the steps outlined here: https://dev.fitbit.com/build/reference/web-api/oauth2/#obtaining-consent."

 

I'm having a lot of trouble trying to get this access token.  I followed some links to Paul's Geek Dad Blog where he is doing somthing similar, and it looks like I have to register an application on Fitbit.  But where do I get the application web site?  I've never done anyting like this before so I'm kinda lost.  I really appreciate any help y'all can give me.

 

To clarify, I'm not making anything that I intend for other people to use.  This is just for my personal hobby use.  

Best Answer
0 Votes
1 REPLY 1

Hi @Automation_guy 

 

That comment you referenced on the Web API Explorer page is weird and should be updated. You can use the Web API Explorer to query your own data and see the results.  I think the intention is that you cannot use your client ID with the Web API Explorer, since the tool has it's own client ID.  

 

You'll register your application at dev.fitbit.com.   If the application is for personal use and you will not be distributing it to collect other Fitbit user data, you may supply a dummy value for the application web site, terms of service and privacy policy.

 

Would you please send me the link you're looking at?   I might be able to make sense of the direction you're using.

 

Gordon  

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes