General - Get user information
API Url
Used for loading user informations, like name and e-mail, for the current loged-in user.
http://localhost:16010/ProMarkREST/rest/General/user_info
Permissions: user
Request headers
| Field | Type | Description |
|---|---|---|
Accept-Languageoptional | String | =en-GB Language use for localization. |
X-Clientoptional | String | =Client type. "Portal""Mobile""Admin" |
X-Roleoptional | Number | ProMark role (1: Employee, 2: User). {12} |
X-WebPart-Idoptional | Number | Unique web-part identifier. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
avatarURIoptional | String | URI for loading employee avatar. If no picture exists, this will be skipped. |
cultureoptional | String | User culture. |
emailoptional | String | User's e-mail. |
empIdoptional | String | User's employee id. |
empNooptional | String | User's employee number. |
| fullName | String | User's full name. |
initialsoptional | String | User's initials. |
mobilePhoneoptional | String | User's mobile phone number. |
| portalUserId | Number | Portal user id |
| roles | Object[] | Collection of allowed ProMark roles. |
| description | String | Role description. |
HostRetransferAccessoptional | String | Access to host retransfering functonality |
| id | Number[1-2] | Role identifier (1: Employee, 2: User). |
isAdministratoroptional | Boolean | true = User has Administrator privileges. |
productionDisplayIdoptional | String | Production Display ID linked to the display user. |
terminalIdoptional | String | Terminal ID linked to the terminal user. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"data": {"empNo": "MFA","empId": "4321","fullName": "Mircea Alexandru","email": "mfa@mark-info.com","initials": "MFA","culture": "da-dk""roles": [{"id": 1,"description": "Employee"},{"id": 2,"description": "User","isAdministrator": false,}],"avatarURI": "data:image/jpg;base64,..."},"errorCode": 0,"errorMessage": ""}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |