02-27-2023 21:54
02-27-2023 21:54
We are considering creating an application that retrieves alarm information set by a device and links it to other devices. (e.g., turn on the air conditioner one hour before the alarm)
I know that the alarm information could be obtained from the link below, but how is it possible to obtain the [user-id] and [tracker-id]?
https://dev.fitbit.com/build/reference/web-api/devices/get-alarms/
03-02-2023 23:03
03-06-2023 11:55 - edited 03-06-2023 11:56
03-06-2023 11:55 - edited 03-06-2023 11:56
Hi @NH7716
You can get the user id from either the access token or calling the Get Profile endpoint and looking for the encodedId value. You can get the tracker ID by calling the Get Devices endpoint. Please keep in mind which devices support the Get Alarm endpoint.
Gordon