List Product Brands
GET https://api.runningahead.com/rest/logs/me/products
GET https://api.runningahead.com/rest/logs/me/products/{id}
Retrieves a list product brands in the system.
Parameters
Parameter |
Type |
Description |
access_token |
string (required) |
OAuth 2.0 token for the current user. |
id |
integer or fixed type |
If specified, returns only brands that support the activity type identified by
id.
You can also use the following named types:
|
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. |
Response
Parameter |
Type |
Description |
entries |
ProductBrand[] |
An array of ProductBrand objects. |
numEntries |
integer |
Total number of equipment. |
Example 1
Request
List 10 product brands.
https://api.runningahead.com/rest/logs/me/product?
access_token=VjU5s4dyhAPO2XiUzaNVeE&
limit=10
Response
The response contains a list of brand names of mixed activity IDs.
{
"code": 0,
"data":
{
"entries":
[
{
activityIds: [ 10 ],
name: "adidas"
},
{
activityIds: [ 10 ],
name: "Altra"
},
{
activityIds: [ 10 ],
name: "Brooks"
},
{
activityIds: [ 10 ],
name: "Keen"
},
{
activityIds: [ 10 ],
name: "Mizuno"
},
{
activityIds: [ 10 ],
name: "Patagonia"
},
{
activityIds: [ 10 ],
name: "Pearl Izumi"
},
{
activityIds: [ 10 ],
name: "Ryka"
},
{
activityIds: [ 10 ],
name: "Vitruvian"
},
{
activityIds: [ 10 ],
name: "Wilson"
}
],
numEntries: 64
}
}
Example 2
Request
List 5 product brands that support running.
https://api.runningahead.com/rest/logs/me/product/running?
access_token=VjU5s4dyhAPO2XiUzaNVeE&
limit=10
https://api.runningahead.com/rest/logs/me/product/10?
access_token=VjU5s4dyhAPO2XiUzaNVeE&
limit=10
Response
The response contains a list of brand names of for running only. Notice there are a total of 45 brands as indicated by the numEntries property.
{
"code": 0,
"data":
{
"entries":
[
{
activityIds: [ 10 ],
name: "adidas"
},
{
activityIds: [ 10 ],
name: "Altra"
},
{
activityIds: [ 10 ],
name: "Brooks"
},
{
activityIds: [ 10 ],
name: "Keen"
},
{
activityIds: [ 10 ],
name: "Mizuno"
}
],
numEntries: 45
}
}