Get Preference
GET https://api.runningahead.com/rest/users/me/preference
Get the specified user's preference.
Request
Parameter |
Type |
Description |
access_token |
string (required) |
OAuth 2.0 token for the current user. |
Response
Parameter |
Type |
Description |
preference |
Preference |
The requested user info |
Example
Request
https://api.runningahead.com/rest/users/me/preference?access_token=VjU5s4dyhAPO2XiUzaNVeE
Response
{
"code": 0,
"data":
{
"preference":
{
"utcOffset": -5.0,
"distanceUnit": "mi",
"weightUnit": "lb",
"temperatureUnit": "F"
}
}
}