03-22-2025 03:54
03-22-2025 03:54
Am I doing something wrong? I was not expecting the response that I got back
curl 'https://api.fitbit.com/1/user/<USERID>/activities/<LOGID>.tcx?includePartialTCX=true' \
-H 'accept:application/vnd.garmin.tcx+xml' \
-H 'authorization: Bearer <ACCESS-TOKEN>'
Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TrainingCenterDatabase xmlns="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2">
<Activities>
<Activity Sport="Other">
<Id>[DATE]</Id>
<Creator xsi:type="Device_t" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UnitId>0</UnitId>
<ProductID>0</ProductID>
</Creator>
</Activity>
</Activities>
</TrainingCenterDatabase>
There is data associated to this exercise in fitbit:
Best Answer03-27-2025 23:13
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
03-27-2025 23:13
Hi @nilli29
Thank you for reaching out, I tried the Get Activity TCX through https://dev.fitbit.com/build/reference/web-api/explore/
With the same exercise type - Aerobics and parameter - includePartialTCX=true, I can get the correct data.
Can you try to test the Get Activity TCX query again through the Fitbit Web API Explorer and check if you still get the same response?
Thanks!
Inca
Best Answer03-28-2025 00:17
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
03-28-2025 00:17
Please use the same log-id to test again and provide the complete response to us.
Thank you, Inca
Best Answer