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?
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
@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.
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
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
@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?
@IoanbsuFitbit : Thank you for the response. Is there any easier method to simply get access from the user (By logging in to FitBit) and create/write credentials(clientID, token) for him by the Application. (Since most of the FitBit users do not know how to create/access ClientID)
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
@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.
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 AnswerJust for completeness, and one else looking, I replied to you about editing information here as well.
Best Answer