POST api/Device/Login
Documentation for 'Login'.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| request | Documentation for 'request'. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"device_guid": "sample string 1",
"code": "sample string 2"
}
application/xml, text/xml
Sample:
<LoginRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ContentApi.Client.Rest.Device.Entities"> <code>sample string 2</code> <device_guid>sample string 1</device_guid> </LoginRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Response body formats
application/json, text/json
Sample:
{
"token": "sample string 1",
"expire_in": 2,
"server_time_stamp": 1,
"is_success": true,
"error_message": "sample string 3",
"exception_name": "sample string 4",
"error_code": 5
}
application/xml, text/xml
Sample:
<LoginResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ContentApi.Client.Rest.Device.Entities"> <error_code xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">5</error_code> <error_message xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 3</error_message> <exception_name xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 4</exception_name> <is_success xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">true</is_success> <expire_in>2</expire_in> <server_time_stamp>1</server_time_stamp> <token>sample string 1</token> </LoginResponse>