Get Course

GET https://api.runningahead.com/rest/logs/me/courses/{id}

Get the details of the course identified by id. The id is obtained by calling List Courses.

Request

Parameter Type Description
access_token string (required) OAuth 2.0 token for the current user.

Response

Parameter Type Description
workout Course The requested course

Example

Request

https://api.runningahead.com/rest/logs/me/courses/d4faa3d754ba4dbc8c0517872a89c722?
access_token=VjU5s4dyhAPO2XiUzaNVeE

Response

{
    "code": 0,
    "data":
    {
        "course":
        {
            "distance":
            {
                "unit": "mi",
                "value": 26.20
            },
            "id": "dd8bdfe3622b42daa30e24124525c9b8",
            "name": "Boston Marathon",
            "notes": "Heartbreak Hill broke my heart.",
            "surfaces":
            {
                "asphalt": true
            }
        }
    }
}