List Equipment

GET https://api.runningahead.com/rest/logs/me/equipment

Retrieves a list of the uesr's equipment.

Parameters

Parameter Type Description
access_token string (required) OAuth 2.0 token for the current user.
activityName integer Return only equipment with this activity ID.
limit integer The total number of records to be returned. Must be between 1 and 100, inclusive. If not specified, limit will be defaulted to 50.
offset integer 0-based index of the first equipment to be returned.
showRetired boolean Include retired equipment in the result.

Response

Parameter Type Description
entries Equipment[] An array of equipment objects.
numEntries integer Total number of equipment.

Example

Request

List 30 equipment starting at entry 20.

https://api.runningahead.com/rest/logs/me/equipment?
access_token=VjU5s4dyhAPO2XiUzaNVeE&
limit=30&
offset=20

Response

{
    "code": 0,
    "data":
    {
        "entries":
        [
            {
                "activityID": 10,
                "brandID": "b73bf733d3cb4370830cff10c96509f3",
                "brandName": "ASICS",
                "distance":
                {
                    "unit": "m",
                    "value": 6759.25
                },
                "id": "5e41900443084723af0d0c0a1ae90490",
                "modelID": "07bf3caceee94954bee613e7d569b8de",
                "modelName": "Gel-DSTrainer 16",
                "price": 94.00,
                "serial": "4"
            },
            {
                "activityID": 10,
                "brandID": "61eb2a9fed3441bba70844d4f189b95e",
                "brandName": "Unknown",
                "distance":
                {
                    "unit": "m",
                    "value": 205440.807
                }
                "id": "7dd9988366794ce29ff20ca45eee27ff",
                "modelID": "d1d4402b82504b5c8cc052be71d4a78a",
                "modelName": "Barefoot",
                "serial": "Barefoot"
            },
            {
                "activityID": 10,
                "brandID": "9ebe33f308ca47f6afcb3b76d77a01d7",
                "brandName": "Vibram",
                "distance":
                {
                    "unit": "m",
                    "value": 46501.997
                }
                "id": "779ce42cc41d40b69309e58644503c19",
                "modelID": "9058069b6009491da14dec35d26f4794",
                "modelName": "Five Fingers KSO",
                "price": 89.99
            }
        ],
        "numEntries": 23
    }
}