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

Can fitbit app communicate with my own server through web service?

ANSWERED

Hello there,

 

Can fitbit app communicate with my own server via Rest API?

How to achieve this?

 

Thanks,

MP

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Yes, that's totally possible in the same way. For example, here is how it is done for the Golf GPS app:
https://github.com/pieteroskam/Fitbit-Golf-GPS/blob/master/companion/index.js

View best answer in original post

Best Answer
5 REPLIES 5

Yes, you can take a look at this example. In this example the companion (your phone) sends a GET call to the fitbit servers to retrieve some sleep data (that code is here). Then it uses messaging to communicate the received data from your phone to your watch (that code is here).

 

(The github page also explains how to get an OAuth ID and secret. But these might only be necessary to communicate with the fitbit web API.)

Best Answer

Hi JeCom,

 

Yes, Fitbit Web APIs are available to get/ post data from/ to fitbit.com.

 

But I want my own fitbit app to communicate with my server with URL such as https://<server_domain_name>/get/userid.

Is there a way to do that?

 

Thanks,

MP

 

Best Answer
0 Votes

Yes, that's totally possible in the same way. For example, here is how it is done for the Golf GPS app:
https://github.com/pieteroskam/Fitbit-Golf-GPS/blob/master/companion/index.js

Best Answer

Thanks JeCom. It worked as expected.

-MP

Best Answer

No problem, glad to help 🙂

Best Answer
0 Votes