05-11-2020 10:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-11-2020 10:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hello,
Starting with a bit of background, I have created a clock face which records sensor data and writes this data to a file. This file is eventually sent to the companion and then forwarded to a server, where it is uploaded to a database.
This application flow works for one device, but I need to scale it to 40 devices, while mapping the each device to its correspond data. The problem is that I am unable to create an association between a FitBit device and the data that is being sent to the companion. Getting to the point, is there any way to install one clock face on all 40 FitBit devices, but to be able to recognize which device is sending data to the server?
Thanks in advance.

05-12-2020 12:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


05-12-2020 12:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
We don't provide an API to identify a specific user or device, so you'd need to authenticate the users against your backend. Use the Settings API to perform OAuth 2.0 against your web service, then you can store a unique token per authenticated user.
Here's a couple of links to get you started.
https://dev.fitbit.com/build/guides/settings/
https://github.com/fitbit/sdk-oauth

