Get User

GET https://api.runningahead.com/rest/users/me

Get the specified user's information. The user must have granted your application permission to access private information before you can invoke this method.

Request

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

Response

Parameter Type Description
user User The requested user info

Example

Request

https://api.runningahead.com/rest/users/me?access_token=VjU5s4dyhAPO2XiUzaNVeE

Response

{
    "code": 0,
    "data":
    {
        "screenName": "frankie",
        "person":
        {
            "birthDate": "1883-07-03",
            "email": "kafka83@localhost",
            "givenName": "Franz",
            "familyName": "Kafka",
            "gender": "m",
        },
        "preference":
        {
            "utcOffset": -5.0,
            "distanceUnit": "mi",
            "weightUnit": "lb",
            "temperatureUnit": "F"
        }
    }
}