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

How to get my api json

I have register an app and get the client id and client secret key, and passing these things in to this url (https://www.fitbit.com/oauth2/authorize?response_type=code&client_id=dummyid&redirect_uri=http%3A%2F...) and redircted to particular redirected url which i registered in app (http://closerlooksearch.com/Apportis/profile/fitbit.php?code=73a7666d509e302fdb155828f207e0ea8673177...) it's shows blank page what should i do after that how can i get the user datas json.Can anyone help to come out of this?

 

 

Best Answer
0 Votes
7 REPLIES 7

@closerlook please check out this post: https://community.fitbit.com/t5/Web-API-Development/Make-your-OAuth2-0-request-in-less-than-1-minute... it has a link to tutorial page that will help you to understand how to make API requests.

Best Answer

Hi,

 

Thank you for your response.I have integrated the json with my application and get data.I have one more question, I have a list of users for my web application I have created a page to get the user Fitbit client id and integrate the Fitbit data, what should my user do for getting their client id? Is every user should go (https://dev.fitbit.com) here and register an app to get their client id, or there is any other way to simplify it?

Best Answer
0 Votes

@closerlook you only need to create application once at dev.fitbit.com

This application that you register at dev.fitbit.com will be able to get access to user's data, given every Fitbit user you need to get data about will allow your app to get his data.

 

Please let me know if this makes sense? 

Best Answer

Best Answer
0 Votes

@closerlook if I understand your correctly you're concerned that every user has to create an app at dev.fitbit.com?

 

Users don't have to create an app at dev.fitbit.com. You register the app once and then you set up your app to get access to other Fitbit users's data through OAuth2.0 flow. 

Basically what's going on is that your app(that you have to develop) will redirect users to fitbit.com/oauth2/authorize and tell the user that the app that you registered at dev.fitbit.com wants to have access to their data. Once user grants access to his data, you can store their tokens and have access to user's data.

 

It is absolutely required that users have to grant and access for their Fitbit data to be accessed by your app.

 

Let me know if it answers your question.

Best Answer

Thank you for your reply. I have integrated the Fitbit API with our portal now I can see the Fitbit data in our portal. Now my question is there is any way to edit the data from our portal(i.e from our system), So that it change in Fitbit API too.

Best Answer
0 Votes

Just for completeness, and one else looking, I replied to you about editing information here as well.

Ionic & Aria, Blaze (retired), Alta (retired), Surge (retired), Charge HR (retired), One (retired), Classic (retired) | Microsoft Surface | Google Pixel 2XL Android FitBit App
Best Answer
0 Votes