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

Call Third Party api

ANSWERED

Hello guys,

 

I am new to FitBit world so please don't mind if I mis-spell the things.

 

I wants to fetch some data from my api server and show it on the FitBit watch, so can anyone please provide me some links or docs like I can refer to call my own api hosted on my server and display the results on a watch.

 

Thank in Advance

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions
4 REPLIES 4

You'll have to access the server in companion code that runs within the Fitbit app on your phone, because the watch itself can't connect to anything but the companion code.

Within your companion code, you'll have to use fetch() or WebSocket to get the data from your server.

Peter McLennan
Gondwana Software
Best Answer

Hello @Gondwana

 

Thank you so much for replying back to me, can you share any doc for fetch() or WebSocket from where I can get the idea and flow as I am a newbee to the FitBit.

Best Answer
0 Votes

@Gondwana 

 

Thank you so much for helping me out. 🙂

Best Answer