Hello all, sorry for my english, it's a google trad.
I am unable to send a request via the health API for a webapp. I would like my users to be able to synchronize their activity files (fit) from their kid connect account to their space on my website.
Where I am :
I manage to connect via Oauth1.0
I receive a json ping for each new activity that looks like this
{
"activityFiles": [
{
"userId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"userAccessToken": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"summaryType": "GPX",
"callbackURL": "https://healthapi.garmin.com/wellness-api/rest/activityFile?id=11607627"
}
]
}
now I need to recover the file, but I have an error {"errorMessage": "Invalid OAuth signature."}
However, using the page https://healthapi.garmin.com/tools/oauthSignRequest I get exactly the same Oauth1.0 signature and the same http authorization header... Then i do not understand.
Another problem is that on this page is required the parameters "upload start time" and "upload end time", which are added to the requested url with a formatting error (note the question mark in front of uploadstarttimeinseconds while this is not the first parameter)
healthapi.garmin.com/.../activityFile
Who can help me ?