Show

Description

Gets user information. You can check the access_token.

Only the active user can get their own accreditation, email and profile data. You can also user the admin token to get others users email and profile.

URL

/VERSION/users/USR/show.FORMAT

Available Format

JSON

HTTP Method

GET

Accepted Version

1

Require

Authorization.

Headers

Not applicable.

Parameters

  • access_token: (Required) access_token to user resources.
  • USR: (Required)User id which we obtain information. The value “me” provides information for the current user. If the specified user not match with the current active user, the response will not include the accreditation data. Similarly, if the active user is different of the specified one, and the active user is not an administrator, the profile data and the email will be null for privacy reasons.

Example

https://api.topoos.com/1/users/me/show.json?access_token=62f5280d-c954-4ee7-a0a8-68ff9c2810d8

Reply

JSON example reply

{
    "id": "6fc41376-3046-41c7-8f9a-b5809d80f36e",
    "name": "johndoe",
    "email": "john@doe.com",
    "email_verified": true,
    "register": "2014-07-24T12:17:30.907+02:00",
    "provider": null,
    "profile": {
        "birthday": "1997-07-16T10:30:15.343+02:00",
        "gender": "MALE"
    },
    "ugroup": [],
    "accreditation": {
        "expirationtime": null,
        "client_id": "512b28ea-3c00-4be4-89ea-bf86f02f24db",
        "access_token": null,
        "refresh_token": null,
        "visibledevices": [
            {
                "id": 7686,
                "name": "512b28ea-3c00-4be4-89ea-bf86f02f24db",
                "model": 3,
                "islogical": true
            }
        ]
    }
}