Get Workout
GET https://api.runningahead.com/rest/logs/me/workouts/{id}
Get the details of the workout identified by id
. The
id
is obtained by calling
List Workouts.
Request
Parameter |
Type |
Description |
access_token |
string (required) |
OAuth 2.0 token for the current user. |
Response
Parameter |
Type |
Description |
workout |
Workout |
The requested workout |
Example
Request
https://api.runningahead.com/rest/logs/me/workouts/44e87875cc644d77a8ba6790b890990a?
access_token=VjU5s4dyhAPO2XiUzaNVeE
Response
{
"code": 0,
"data":
{
"workout":
{
"activityID": 10,
"activityName": "Run",
"course":
{
"id": "79af9f804a2148ed95c9dc07dd30aead",
"name": "Point Vicente"
},
"date": "2012-03-13",
"details":
{
"distance":
{
"unit": "mi",
"value": 4.13
},
"duration": 2112.99
},
"equipment":
{
"id": "bc445b19d86f4aa291721c6bdff1456a",
"name": "Nike Zoom Structure+ 15"
},
"health":
{
"restHR": 52,
"weight":
{
"unit": "lb",
"value": 135
}
},
"id": "44e87875cc644d77a8ba6790b890990a",
"intervalSet":
{
"id": "7f98503d9c6b4a42903a21d8bb52e754",
"intervals":
[
{
"distance":
{
"unit": "mi",
"value": 0.21
},
"duration": 131.79,
"type": "interval"
},
{
"distance":
{
"unit": "mi",
"value": 0.01
},
"duration": 16.6,
"type": "rest"
},
{
"distance":
{
"unit": "mi",
"value": 1
},
"duration": 520.8,
"type": "interval"
},
{
"distance":
{
"unit": "mi",
"value": 1
},
"duration": 494.58,
"type": "interval"
},
{
"distance":
{
"unit": "mi",
"value": 1
},
"duration": 493.52,
"type": "interval"
},
{
"distance":
{
"unit": "mi",
"value": 0.92
},
"duration": 472.3,
"type": "interval"
},
{
"distance":
{
"unit": "mi",
"value": 0.01
},
"duration": 24.2,
"type": "rest"
},
{
"distance":
{
"unit": "mi",
"value": 0.11
},
"duration": 62.14,
"type": "recovery"
}
],
"name": "GPS Interval"
},
"notes": "Nice easy run. Just floated along!",
"ratings":
{
"effort": 4,
"quality": 6
},
"timeOfDay": "18:51:00",
"weather":
{
"conditions":
{
"clear": true
},
"temperature":
{
"unit": "F",
"value": 56
}
},
"workoutID": 7,
"workoutName": "Fartlek"
}
}
}