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 Answer
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.
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 Answer
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.
Please use the same log-id to test again and provide the complete response to us.
Thank you, Inca
Best Answer