03-24-2018 06:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

Base Runner
49
0
102
03-24-2018 06:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
1 REPLY 1
03-25-2018 14:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

Recovery Runner
12
1
9
03-25-2018 14:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
Fitbit SDK example application. Contribute to Fitbit/sdk-bart development by creating an account on GitHub.

