POST api/ApiAuthUser

Получение ключа доступа (access_token)

Request Information

URI Parameters

None.

Body Parameters

RequestApiAuthUser
NameDescriptionTypeAdditional information
login

Логин

string

None.

password

Пароль

string

None.

Request Formats

application/json, text/json

Sample:
{
  "login": "sample string 1",
  "password": "sample string 2"
}

application/xml, text/xml

Sample:
<RequestApiAuthUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MobileApi.Rexona.Models">
  <login>sample string 1</login>
  <password>sample string 2</password>
</RequestApiAuthUser>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RequestApiAuthUser'.

Response Information

Resource Description

ResponseApiAuthUser
NameDescriptionTypeAdditional information
access_token

access_token

string

None.

status

Блок статуса

ResponseStatus

None.

Response Formats

application/json, text/json

Sample:
{
  "access_token": "sample string 1",
  "status": {
    "STAT": "sample string 1",
    "MSG": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<ResponseApiAuthUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MobileApi.Rexona.Models">
  <access_token>sample string 1</access_token>
  <status>
    <MSG>sample string 2</MSG>
    <STAT>sample string 1</STAT>
  </status>
</ResponseApiAuthUser>