POST api/ApiAuthUser
Получение ключа доступа (access_token)
Request Information
URI Parameters
None.
Body Parameters
RequestApiAuthUser| Name | Description | Type | Additional 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.Henkel.Models"> <login>sample string 1</login> <password>sample string 2</password> </RequestApiAuthUser>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResponseApiAuthUser| Name | Description | Type | Additional 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.Henkel.Models">
<access_token>sample string 1</access_token>
<status>
<MSG>sample string 2</MSG>
<STAT>sample string 1</STAT>
</status>
</ResponseApiAuthUser>