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

Companion REST-Example

 

 

Hey devs,

 

is there any example which shows how to communicate with a rest-api from the companion?

I basically think about POST and GET request to a website with json response.

 

Looking forward to your answers.

 

Best regards,
Daniel

Best Answer
1 REPLY 1

Hi,

 

I found https://github.com/Fitbit/sdk-bart to be good a example. More specifically you will see a usage of Fetch in https://github.com/Fitbit/sdk-bart/blob/master/companion/bart.js .

 

Good luck !

Jo

Best Answer
0 Votes