Hello everyone,
I'm reaching out because I'm encountering a problem with integrating the Garmin Connect API into my mobile app, which aims to retrieve users' running information. Everything was working fine until recently when I found myself unable to fetch user information, whether it be metrics or activity details.
Here's a summary of the steps I've taken and the issues encountered:
- OAuth Authentication: I've successfully set up OAuth authentication and obtained a valid access token. I've checked that the token is still valid and has not expired.
- Permissions: I've confirmed that the access token has the necessary permissions to access activity details and metrics, using the
/user/permissions
endpoint which returns{"permissions":["ACTIVITY_EXPORT","HEALTH_EXPORT","WORKOUT_IMPORT","COURSE_IMPORT"]}
. - Endpoint Requests: When making requests to endpoints to retrieve activities (for example,
/activityDetails
with parametersuploadStartTimeInSeconds
anduploadEndTimeInSeconds
), I receive an HTTP 200 OK response, but with an empty or null response body. Here's an example of a request I used:apis.garmin.com/.../activityDetails
. - Verifications: I've checked the UTC timestamps used in the requests and confirmed that they correspond to periods when activities should exist. I've also tested with different time intervals.
- API Logs and Responses: The logs show that the requests are well-formed and that the API responses indicate a success status (200 OK), but without any data returned. For example:
Response{code=200, message='OK', body='null', ...}
.
I'm looking for advice or suggestions on how to resolve this issue. Has anyone encountered a similar situation or have any suggestions on what I might try next? Here are additional details about my development environment and the libraries used: [Include details here such as programming language, libraries/APIs used, versions, etc.]
Thank you in advance for your help!