Users
Show
GET /users/#{id}.format
GET /users/current.format


Description

User can get user information. If the user uses in the call current descriptor then automatically will get current user information.
Authentication is required to use this method.


Arguments

  1. OAuth (mandatory): OAuth authentication params
  2. user id (mandatory): user unique identificator

Response example

Status:200

<user>
        <id>2636</id>
        <firstname>testLogin<firstname>
        <lastname>LastName</lastname>
        <email>testLogin@ntr.com</email>
        <role>administrator</role>
        <language>en</language>
        <time_zone>(GMT+01:00)</time_zone>
        <last_login>2010-04-28T13:55:08Z</last_login>
        <register_date>2010-01-01T11:34:38Z</register_date>
</user>
Response values

  1. id: unique device ID
  2. firstname: user name
  3. lastname: user last name
  4. email: user email address
  5. role: user role within application
    • administrator
    • user
  6. language: language preferences
    • en - English
    • es - Spanish
    • it - Italian
    • ge - German
    • fr - French
  7. time_zone: user preferred time zone
  8. last_login: last time this user was logged in
  9. register_date: date this user was registered in the application

Error Codes

  1. 1200 - User id not found (404)


List All
GET /users.format

Description

User can obtain a collection of users of the account.
Authentication is required to use this method.


Arguments

  1. OAuth (mandatory): OAuth authentication params

Response example

Status: 200

<users> 
        <user>

                …

        </user>
        <user>

                …

        </user>
</users>