GET api/Gadget/GetUser
Get an object that contains the information of authenticated user.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
UserName | Description | Type | Additional information |
---|---|---|---|
UserId | globally unique identifier |
None. |
|
Name | string |
None. |
|
string |
None. |
||
Code | string |
None. |
|
ImageUrl | string |
None. |
|
CurrentCountryId | string |
None. |
|
CurrentTimeZoneId | string |
None. |
|
CurrentAccountId | globally unique identifier |
None. |
|
CurrentAccountCode | string |
None. |
|
CurrentAccountName | string |
None. |
|
Token | string |
None. |
|
IsAdmin | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "UserId": "5d6f25b6-001a-40be-b7fa-8b247988e845", "Name": "sample string 2", "Email": "sample string 3", "Code": "sample string 4", "ImageUrl": "sample string 5", "CurrentCountryId": "sample string 6", "CurrentTimeZoneId": "sample string 7", "CurrentAccountId": "4512c454-a542-42bd-9cac-04c52a969010", "CurrentAccountCode": "sample string 8", "CurrentAccountName": "sample string 9", "Token": "sample string 10", "IsAdmin": true }
application/xml, text/xml
Sample:
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gosocket.SDK.Domain"> <_x003C_Code_x003E_k__BackingField>sample string 4</_x003C_Code_x003E_k__BackingField> <_x003C_CurrentAccountCode_x003E_k__BackingField>sample string 8</_x003C_CurrentAccountCode_x003E_k__BackingField> <_x003C_CurrentAccountId_x003E_k__BackingField>4512c454-a542-42bd-9cac-04c52a969010</_x003C_CurrentAccountId_x003E_k__BackingField> <_x003C_CurrentAccountName_x003E_k__BackingField>sample string 9</_x003C_CurrentAccountName_x003E_k__BackingField> <_x003C_CurrentCountryId_x003E_k__BackingField>sample string 6</_x003C_CurrentCountryId_x003E_k__BackingField> <_x003C_CurrentTimeZoneId_x003E_k__BackingField>sample string 7</_x003C_CurrentTimeZoneId_x003E_k__BackingField> <_x003C_Email_x003E_k__BackingField>sample string 3</_x003C_Email_x003E_k__BackingField> <_x003C_ImageUrl_x003E_k__BackingField>sample string 5</_x003C_ImageUrl_x003E_k__BackingField> <_x003C_IsAdmin_x003E_k__BackingField>true</_x003C_IsAdmin_x003E_k__BackingField> <_x003C_Name_x003E_k__BackingField>sample string 2</_x003C_Name_x003E_k__BackingField> <_x003C_Token_x003E_k__BackingField>sample string 10</_x003C_Token_x003E_k__BackingField> <_x003C_UserId_x003E_k__BackingField>5d6f25b6-001a-40be-b7fa-8b247988e845</_x003C_UserId_x003E_k__BackingField> </User>