How do I retrieve longitude and latitude data with the use of python?
I saw "Get Activity TCX" and typed "Resource URLs".
-> Get Activity TCX...https://dev.fitbit.com/docs/activity/#get-activity-tcx
-> Resource URLs...https://api.fitbit.com/1/user/[user-id]/activities/[log-id].tcx
But error message below is displayed.
--------------------------------------------------
invalid_client - Invalid authorization header format.
Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API
authorization process.
--------------------------------------------------
I was getting user_id from the profile endpoint and log-id from Activity Logs List.
Please tell me what is a problem.
Answered! Go to the Best Answer.
Best Answer
Community Moderator Alumni are previous members of the Moderation Team, which ensures conversations are friendly, factual, and on-topic. Moderators are here to answer questions, escalate bugs, and make sure your voice is heard by the larger Fitbit team. Learn more
@WA1 You'll need to send the access token, should be something like this:
Authorization: Bearer accesstokenforuser
Community Moderator Alumni are previous members of the Moderation Team, which ensures conversations are friendly, factual, and on-topic. Moderators are here to answer questions, escalate bugs, and make sure your voice is heard by the larger Fitbit team. Learn more
My setting is as follows.
----------------------------------------------------------------------------
req = urllib2.Request('https://api.fitbit.com/1/user/4PNPB2/activities/4580023024.tcx')
req.add_header('content-type', 'application/vnd.garmin.tcx+xml; charset=utf8')
----------------------------------------------------------------------------
Thank you.
Best Answer
Community Moderator Alumni are previous members of the Moderation Team, which ensures conversations are friendly, factual, and on-topic. Moderators are here to answer questions, escalate bugs, and make sure your voice is heard by the larger Fitbit team. Learn more
@WA1 You'll need to send the access token, should be something like this:
Authorization: Bearer accesstokenforuser
Community Moderator Alumni are previous members of the Moderation Team, which ensures conversations are friendly, factual, and on-topic. Moderators are here to answer questions, escalate bugs, and make sure your voice is heard by the larger Fitbit team. Learn more