I want to download the csv of the training and the json with the targets, do you have a link that tells me how to do it (I want to download it directly with python, I was looking for the documentation to connect to the api
You might be better off using the JSON endpoints. There are Swagger docs here: Swagger UI
I am planning to improve those.
You need to look at these:
- /api/v1/athlete/{id}/activities Completed activities for a date range
- /api/v1/athlete/{id}/events Planned events (notes, workouts etc.) for a date range
Activities paired with planned workouts have a paired_event_id field that can be used to match to the events.
1 Like