09-07-2020 07:33
09-07-2020 07:33
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
Answered! Go to the Best Answer.
09-08-2020 01:33
09-07-2020 13:41
09-07-2020 13:41
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.
09-08-2020 01:06
09-08-2020 01:06
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.
09-08-2020 01:33
09-08-2020 01:33
https://dev.fitbit.com/build/reference/companion-api/fetch/
https://dev.fitbit.com/build/reference/companion-api/websocket/
09-09-2020 01:24