11-02-2015 23:33
11-02-2015 23:33
Hi,
I would like to Integrate Fitbit Surge Device and Track the Activities using My own Android application using Fitbit Web API, So kindly please share the detailed description to begin with Fitbit Device and Android Application.
Please let me know the Initial steps and procedure to integrate the Fitbit device.
Thank you,
Answered! Go to the Best Answer.
11-03-2015 15:44
11-03-2015 15:44
Welcome, @Akkhigan. The Fitbit Web API is a standard OAuth 2.0 API, so you should be able to use any OAuth 2.0 or HTTP library of your choice.
First, you need to register an application at https://dev.fitbit.com/apps/new
Then, you need to send a user through the authorization process, where the user gives your app permission to access their data. For an Android app, you'll want to use the Implicit Grant Flow.
After that, you request data from the Fitbit Web API by making HTTP requests with an Authorization header.
All of the endpoints are documented at https://dev.fitbit.com/docs .
11-03-2015 15:44
11-03-2015 15:44
Welcome, @Akkhigan. The Fitbit Web API is a standard OAuth 2.0 API, so you should be able to use any OAuth 2.0 or HTTP library of your choice.
First, you need to register an application at https://dev.fitbit.com/apps/new
Then, you need to send a user through the authorization process, where the user gives your app permission to access their data. For an Android app, you'll want to use the Implicit Grant Flow.
After that, you request data from the Fitbit Web API by making HTTP requests with an Authorization header.
All of the endpoints are documented at https://dev.fitbit.com/docs .
11-30-2015 01:47
11-30-2015 01:47
Hi Thank you,
I would like to Integrate the fitbit devices into my application directly. So is there any such kind of libraries or SDK or Blutooth sync directly with third party apps.
Please let me know if any such options.
Thank you,
11-30-2015 10:51
11-30-2015 10:51
@Akkhigan: Third-party apps cannot communicate with Fitbit devices via Bluetooth. You need to use the Web API to get data from Fitbit.
03-10-2016 11:03
03-10-2016 11:03
Hi, we were having the same questions. Are there any apps that actually do this? We have downloaded a couple of them and they do offer some sort of connection between the app and the band, but we haven't been able to link them. We tried RunKeeper, for example and couldn't connect the band with the app, although the app has an option to do so. Are there any apps that we could check that succesfully link a third party app with Fitbit's Web API?
Thanks,
Mauricio
03-10-2016 12:54 - edited 03-10-2016 12:55
03-10-2016 12:54 - edited 03-10-2016 12:55
@FunBox The connection is between a third party app and Fitbit, not to the actual device. You cannot connect a Fitbit device to a third party app. As Jeremiah said, you would need to use the Web API to get data from Fitbit.
@FunBox wrote:
Are there any apps that we could check that succesfully link a third party app with Fitbit's Web API?
Maybe I'm misunderstanding the question, but there are plenty of third party apps that use Fitbit's Web API. There's a list of some of them here (which includes Runkeeper).
03-10-2016 13:40 - edited 03-10-2016 13:41
03-10-2016 13:40 - edited 03-10-2016 13:41
Hi and thanks for your quick response. Sorry for not explaining in depth before. We are trying to create an app that uses Fitbit and we have made a few tests with Runkeeper. During this test we have been able to sync our Fitbit account with the app and we now understand that the Fitbit device can't connect directly to it, being a third party app. We would like to know if the user should have to install both apps (our app and Fitbit's official app).
Thanks!
Mauricio
03-10-2016 14:54 - edited 03-10-2016 14:59
03-10-2016 14:54 - edited 03-10-2016 14:59
@FunBox A user doesn't necessarily have to sync through the Fitbit app, so downloading the app is completely up to the user. However, the Fitbit tracker needs to sync to Fitbit through either a computer or mobile device for the data to be available through the API.
03-12-2016 11:15
03-12-2016 11:15
Hi and thanks for your response. So we understand that the user doesn't need to have the fitbit app installed on his phone but he does need a fitbit account. How do we make the user sync his Fitbit data through our app? Is there a way to do so? We have seen some third party apps that include Fitibit login but we haven't been able to make it work.
Thank you!
Mauricio
08-01-2016 01:21
08-01-2016 01:21
HI,
Is there any sample code for web api using oauth2?
06-12-2019 00:32
06-12-2019 00:32
I would like to Integrate Fitbit Surge Device and Track the Activities using My own Android application using Fitbit Web API, So kindly please share the detailed description to begin with Fitbit Device and Android Application. Please let me know the Initial steps and procedure to integrate the Fitbit device.
06-12-2019 11:12
06-12-2019 11:12
Hi @umeshwar,
Welcome! I would refer to Jeremiah's solution above to get started:
The Fitbit Web API is a standard OAuth 2.0 API, so you should be able to use any OAuth 2.0 or HTTP library of your choice.
First, you need to register an application at https://dev.fitbit.com/apps/new
Then, you need to send a user through the authorization process, where the user gives your app permission to access their data. For an Android app, you'll want to use the Implicit Grant Flow.
After that, you request data from the Fitbit Web API by making HTTP requests with an Authorization header.
All of the endpoints are documented at https://dev.fitbit.com/docs .
I hope this helps! Please let me know if you have any questions along the way.
06-20-2019 03:57
06-20-2019 03:57
I have register here https://dev.fitbit.com/apps/new applied for application implicit grant flow and then requested for HTTP requests with an Authorization header
in response access token and refresh token i got.
we have different clients(users) they will authenticate through over android app and access