GET /API/USER/{ID}
RETRIEVE DETAILED INFORMATION FOR A SINGLE USER. RESULT CODE
| 200 | OK |
|---|---|
| 401 | Unauthorized |
| 404 | User not found |
| 406 | SSL must be used |
| 500 | Server Error |
RESULT BODY
| id | The unique user id. This will be needed when calling other api functions. |
||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| username | The username. |
||||||||||||||||||||
| firstname | The first name. |
||||||||||||||||||||
| lastname | The last name. |
||||||||||||||||||||
The email address. |
|||||||||||||||||||||
| phonenumber | The phone number. |
||||||||||||||||||||
| isowner | Is this user an owner. |
||||||||||||||||||||
| isadministrator | Is this user an administrator. |
||||||||||||||||||||
| datecreatedutc | The date the user was created. |
||||||||||||||||||||
| timezoneid | The optional overriding timezone of the user. |
||||||||||||||||||||
| permissions |
|
EXAMPLE REQUEST
Example;-
GET
https://api.calln.com/api/user/1234
Result;-
200 (OK)
{"id":3182,"username":"paul","firstname":"Paul","lastname":"Johansen","email":"[email protected]","phonenumber":"","isowner":true,"isadministrator":true,"datecreatedutc":"2015-01-02T21:16:21.56","timezoneid":null,"permissions":{"deletecalls":true,"emailcalls":true,"downloadcalls":true,"viewaudits":true,"viewallcalls":true,"exportreports":true,"viewfinancials":false,"webinterface":true,"reportall":true,"viewcampaigns":false,"modifytags":false}}
USING CURL
curl "https://api.calln.com/api/user/{id}" -H "Authorization: Basic username:password | base64" -X GET

