Read a completed workout
get_trainingRead one completed workout or race in full: duration, distance, load, heart rate, power, the athlete's debrief, and on request its laps and its sensor curves.
id: the trn_… (workout) or cmp_… (race) handle of a row returned by get_calendar(mode='real').
athlete: the managed athlete's usr_… handle when the workout is not yours.
laps: add every lap, the ones recorded by the device first, then the ones drawn in Nolio, each with
its stats as {value, unit}. When the connector's terms withhold them, only the laps drawn in Nolio
come, with null stats, and laps_restriction says why.
streams: the sensor curves to add, among heartrate, watts, cadence, torque, pace (a speed in
m/s), altitude, distance, or the key of another curve of the file. time (seconds from the
start) always comes with them, units gives each curve's unit. Ask only for the curves the
question needs; a file-less workout returns available: false.
Each curve is sampled evenly to max_points (default 600), every_nth_sample says the step;
max_points can go higher, within 6000 points across the curves requested (time aside).
from_index / to_index keep one window of samples, both included: a lap's start_index and
end_index give exactly that lap. The response then carries from_index: point i of a curve
is sample from_index + i * every_nth_sample.
Files often hold more curves than these seven: ground contact time, vertical oscillation
and ratio, stride length, running form power and leg stiffness, breathing rate, muscle
oxygen (SmO2, THb), core and skin temperature, glucose, pedal smoothness and torque
effectiveness, gears, stroke rate. Their keys vary by device: whenever you request a curve,
other_streams lists the ones this file holds (key, name, unit); request them by key. A
requested curve the file does not hold comes back in unknown_streams.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| laps | No | ||
| athlete | No | ||
| streams | No | ||
| to_index | No | ||
| from_index | No | ||
| max_points | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||