Поиск по сайту

API
Главная / API - Getting the user authorization sess

Getting the user authorization session

Обновлено 24.05.2018
65 кб

General information

Service allows you to get the user authorization session ID for using it in requests to API methods of personal account.

Getting the user authorization session

Method request

Request example

Method address: https://api.dellin.ru/v2/customers/login.json

{
   "appkey": "00000000-0000-0000-000000000000",
   "login": "+71234567890",
   "password": "Password1"
}

Method address: https://api.dellin.ru/v2/customers/login.xml

<request>
   <appkey>00000000-0000-0000-000000000000</appkey>
   <login>+71234567890</login>
   <password>Password1</password>
</request>

Description of parameters

Request
ParameterR*TypeDescription
appkeyYesstring

Application key. To get the key, register

loginYesstringLogin for personal account at dellin.ru
passwordYesstringPassword for personal account at dellin.ru

Method response

Response example

{
   "status": "success",
   "sessionID": "00000000-0000-0000-0000-000000000000"
}
<response>
   <status>success</status>
   <sessionid>00000000-0000-0000-0000-000000000000</sessionid>
</response>

Description of parameters

Response
ParameterTypeDescription
statusstringOperation status: success or error
sessionIDstringSession ID for getting access to the API methods of the personal account at dellin.ru

Error handling

Response example

Message in example below: "Incorrect login or password".

{
   "status": "error",
   "message": "Неправильный логин или пароль"
}
<response>
   <status>error</status>
   <message>Неправильный логин или пароль</message>
</response>