POST api/General/GetUser

Request Information

URI Parameters

None.

Body Parameters

GetUserRequest
NameDescriptionTypeAdditional information
Token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Token": "sample string 1"
}

application/xml, text/xml

Sample:
<GetUserRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Account.Request">
  <Token xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">sample string 1</Token>
</GetUserRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetUserResponse
NameDescriptionTypeAdditional information
User

User

None.

ErrorCode

string

None.

ErrorMessage

string

None.

ErrorCategory

string

None.

Result

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "User": {
    "UserId": "sample string 1",
    "Username": "sample string 2",
    "FirstName": "sample string 3",
    "LastName": "sample string 4",
    "Password": "sample string 5",
    "Email": "sample string 6",
    "PhoneNumber": "sample string 7",
    "Image": "sample string 8",
    "UserStatusId": 64,
    "LastLoginTime": "2021-09-16T18:37:54.8604046+03:00",
    "UserTypeId": 64,
    "CountryId": 12,
    "CultureId": 13,
    "CreationTime": "2021-09-16T18:37:54.8604046+03:00",
    "UserStatus": "sample string 15",
    "UserType": "sample string 16"
  },
  "ErrorCode": "sample string 1",
  "ErrorMessage": "sample string 2",
  "ErrorCategory": "sample string 3",
  "Result": true
}

application/xml, text/xml

Sample:
<GetUserResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Account.Response">
  <ErrorCategory xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">sample string 3</ErrorCategory>
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">sample string 1</ErrorCode>
  <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">sample string 2</ErrorMessage>
  <Result xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">true</Result>
  <User xmlns:d2p1="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Account">
    <d2p1:CountryId>12</d2p1:CountryId>
    <d2p1:CreationTime>2021-09-16T18:37:54.8604046+03:00</d2p1:CreationTime>
    <d2p1:CultureId>13</d2p1:CultureId>
    <d2p1:Email>sample string 6</d2p1:Email>
    <d2p1:FirstName>sample string 3</d2p1:FirstName>
    <d2p1:Image>sample string 8</d2p1:Image>
    <d2p1:LastLoginTime>2021-09-16T18:37:54.8604046+03:00</d2p1:LastLoginTime>
    <d2p1:LastName>sample string 4</d2p1:LastName>
    <d2p1:Password>sample string 5</d2p1:Password>
    <d2p1:PhoneNumber>sample string 7</d2p1:PhoneNumber>
    <d2p1:UserId>sample string 1</d2p1:UserId>
    <d2p1:UserStatus>sample string 15</d2p1:UserStatus>
    <d2p1:UserStatusId>64</d2p1:UserStatusId>
    <d2p1:UserType>sample string 16</d2p1:UserType>
    <d2p1:UserTypeId>64</d2p1:UserTypeId>
    <d2p1:Username>sample string 2</d2p1:Username>
  </User>
</GetUserResponse>