Event Get Next - TrainingPeaks/PartnersAPI GitHub Wiki
Endpoint:
- Resource endpoint: /v2/events/next
- HTTP Method: GET
- OAuth Scope Required: events:read
Example:
Testing:
https://api.sandbox.trainingpeaks.com/v2/events/next
Production:
https://api.trainingpeaks.com/v2/events/next
Returns:
An event object
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
}
]
}