Event Get By Date - TrainingPeaks/PartnersAPI GitHub Wiki
Endpoint:
- Resource endpoint: /v2/events/{date}
- HTTP Method: GET
- OAuth Scope Required: events:read
- Input:
- Date of event. Required.
Example:
Testing:
https://api.sandbox.trainingpeaks.com/v2/events/{date}
Production:
https://api.trainingpeaks.com/v2/events/{date}
Returns:
A list of event objects
Example:
[
{
"Id": 12345,
"AthleteId": 54321,
"EventDate": "2017-08-14T00:00:00",
"EventType": "Triathalon",
"Name": "Ironman Kona",
"Description": "Details about the event",
"WorkoutIds": [98765, 98766, 98767] },
"Goals": [
{
"GoalType": "Distance",
"Value": 140.1,
"Unit": "Miles"
},
{
"GoalType": "Time",
"Value": 7.85361111111,
"Unit": "Hours"
},
{
"GoalType": "Place",
"Value": 1,
"Unit": null
},
{
"GoalType": "Pr",
"Value": true,
"Unit": null
}
]
}
]