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": "f985b56c-74da-4259-8ae7-8a2f2be448c4", "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": "b3b53d88-5422-4a9e-9096-389a96016bdc", "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>b3b53d88-5422-4a9e-9096-389a96016bdc</_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>f985b56c-74da-4259-8ae7-8a2f2be448c4</_x003C_UserId_x003E_k__BackingField> </User>