POST api/Device/ExtendToken
Documentation for 'ExtendToken'.
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" }
application/xml, text/xml
Sample:
<ExtendTokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ContentApi.Client.Rest.Device.Entities"> <device_guid>sample string 1</device_guid> </ExtendTokenRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Response body formats
application/json, text/json
Sample:
{ "expire_in": 1, "token": "sample string 1", "server_time_stamp": 2, "is_success": true, "error_message": "sample string 4", "exception_name": "sample string 5", "error_code": 6 }
application/xml, text/xml
Sample:
<ExtendTokenResponse 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">6</error_code> <error_message xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 4</error_message> <exception_name xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 5</exception_name> <is_success xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">true</is_success> <expire_in>1</expire_in> <server_time_stamp>2</server_time_stamp> <token>sample string 1</token> </ExtendTokenResponse>