05-14-2018 02:15
05-14-2018 02:15
I looking for Device API to query unique id such as serial number or MAC address of Fitbit Ionic, Can anyone suggest to do that?
Answered! Go to the Best Answer.
05-14-2018 13:21 - edited 05-14-2018 13:22
05-14-2018 13:21 - edited 05-14-2018 13:22
There isn't currently a method for uniquely identifying a user or device. You'd need to have them authenticate against your own oauth service.
05-14-2018 13:21 - edited 05-14-2018 13:22
05-14-2018 13:21 - edited 05-14-2018 13:22
There isn't currently a method for uniquely identifying a user or device. You'd need to have them authenticate against your own oauth service.
11-26-2018 05:37
11-26-2018 05:37
Hi,
I was just exploring Device API and found one thing. I can get device info using two ways. once is Device API and another is Web API.
#1 using device API
import { me as device } from "device";
console.log("model ID: " + device.modelId);
It gives me modelID 27
#2 using Web API
https://api.fitbit.com/1/user/-/devices.json
It gives me "id": "527737188"
I am using Ionic. Now I am not sure which is unique device ID which I can use to uniquily identify each ionic watch?? Can I use any of above ID as unique identifier per device ??
Hoping to get reply on this sooner.
Thanks.
11-26-2018 06:05
11-26-2018 06:05
11-26-2018 06:17
11-26-2018 06:17
Hi,
Thanks for the quick response.
for #2, how it can be User ID ? full object what I am getting using Device API is as below:
[ { "battery": "Medium", "batteryLevel": 45, "deviceVersion": "Ionic", "features": [], "id": "527737188", "lastSyncTime": "2018-11-26T17:52:20.722", "mac": "F542468E84FA", "type": "TRACKER" } ]
I guess this api gives list of all devices connected with a user's account. In this case I have only one device connected which is Ionic. so it gives me ID of that. So is this ID unique for each device ?
Also please let me know if you know a way to identify user from any web api. I need to authenticate user and need to perform some activity based on unique user ID. I am not getting any unique detail while making OAuth api call. Please let me know if you know anything about it.
Thanks in advance.
11-26-2018 06:37
11-26-2018 06:37
11-26-2018 22:35
11-26-2018 22:35
Hi,
Thanks for the response.
So I am calling API https://api.fitbit.com/1/user/-/devices.json which gives me list of all devices connected with my account. In my case I only ahve one Ionic so it gives me only one record. and that ID which I am getting is unique for each watch. is that what you mean?
Also if I have two Ionic linked to my account then each will have a different ID?
Just checkign if I can use this ID to uniquely identify each device against user.
Thanks.