12-07-2020 22:14
12-07-2020 22:14
Hi, thanks for reading. I'd like to grab user workout data (e.g. 2 hour bike ride activity that they recorded). I've set up a subscription (seems that's my webhook) but in reading https://dev.fitbit.com/build/reference/web-api/
I can't see how extract the specific activity.
I'd like to get HeartRate, GPS, Speed and distance for the activity from Start to Stop.
Hard to find the answer in the forums as there's so much in there.
Thanks for your help.
Answered! Go to the Best Answer.
12-09-2020 13:05
12-09-2020 13:05
Hi @formfinder
You will need to execute a couple of endpoints to get the information you're requesting.
1. Get Activity TCX endpoint will give you the heart rate, GPS coordinates, speed, and distance for a recorded activity. Keep in mind, the user will need to consent to share activity, heart rate and location scopes; and the device needs to support this functionality too.
2. To determine which activity log to query for the Get Activity TCX file, you should be able to use the Get Activity Log List endpoint.
Gordon
12-09-2020 13:05
12-09-2020 13:05
Hi @formfinder
You will need to execute a couple of endpoints to get the information you're requesting.
1. Get Activity TCX endpoint will give you the heart rate, GPS coordinates, speed, and distance for a recorded activity. Keep in mind, the user will need to consent to share activity, heart rate and location scopes; and the device needs to support this functionality too.
2. To determine which activity log to query for the Get Activity TCX file, you should be able to use the Get Activity Log List endpoint.
Gordon
12-09-2020 16:37
12-09-2020 16:37
Thanks, very helpful.
I see the required parts here:
https://dev.fitbit.com/build/reference/web-api/activity/#get-activity-tcx
and here:
https://dev.fitbit.com/build/reference/web-api/activity/#get-activity-logs-list