Workout Of The Day Get - TrainingPeaks/PartnersAPI GitHub Wiki

Workout(s) of the Day Returns a list workouts for the current day from an athlete’s calendar.

  • Resource endpoint: /v2/workouts/wod/{date}
  • HTTP Method: GET
  • OAuth Scope Required: workouts:wod
  • Input:
    • Today’s date in local time. Required.
  • Optional Query String Parameters:
    • numberOfDays={int}
      • Number of consecutive days to return
      • The number of days requested must be > 1 and <= 7
    • includeDescription={bool}
      • Include the workout Description
    • workoutTypeFilter={string}
      • Only return matching workout types
      • valid types: swim, bike, run, x-train, mtb, strength, xc-ski, rowing, walk, other

Example:

Testing:
https://api.sandbox.trainingpeaks.com/v2/workouts/wod/2017-01-04
https://api.sandbox.trainingpeaks.com/v2/workouts/wod/2017-01-04?numberOfDays=3

Production:
https://api.trainingpeaks.com/v2/workouts/wod/2017-01-04
https://api.trainingpeaks.com/v2/workouts/wod/2017-01-04?numberOfDays=3

Returns:

An array of workouts, see the Workouts object for a complete list of properties

Example:

[
 {
    "DistancePlanned": 100000,
    "Id": 139283664,
    "IFPlanned": null,
    "StartTimePlanned": "2014-04-15T12:57:59",
    "TotalTimePlanned": 1,
    "TssPlanned": 80,
    "WorkoutFileFormats":["erg","fit","mrc","zwo", "json"],
    "WorkoutType": "Bike"
 }
]