GET api/command/commandlist
获取设备支持的指令 如果该指令之前发过就取对应的值
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| AccessToken | string |
None. |
|
| Imei |
设备imei号 |
string |
None. |
Response Information
Resource Description
State状态码说明: 0. 成功 100. 成功但无数据 1000. 设备不存在
CommandListResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Items |
某设备指令列表 |
Collection of Cmd |
None. |
| State | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Items": [
{
"Code": "sample string 1",
"Name": "sample string 2",
"CmdValue": "sample string 3",
"SMSType": 4,
"SMSContent": "sample string 5",
"H5Url": "sample string 6"
},
{
"Code": "sample string 1",
"Name": "sample string 2",
"CmdValue": "sample string 3",
"SMSType": 4,
"SMSContent": "sample string 5",
"H5Url": "sample string 6"
}
],
"State": 1,
"Message": "sample string 2"
}
application/xml, text/xml
Sample:
<CommandListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gps.OpenApi.Models.ResponseModels">
<Message>sample string 2</Message>
<State>1</State>
<Items>
<Cmd>
<CmdValue>sample string 3</CmdValue>
<Code>sample string 1</Code>
<H5Url>sample string 6</H5Url>
<Name>sample string 2</Name>
<SMSContent>sample string 5</SMSContent>
<SMSType>4</SMSType>
</Cmd>
<Cmd>
<CmdValue>sample string 3</CmdValue>
<Code>sample string 1</Code>
<H5Url>sample string 6</H5Url>
<Name>sample string 2</Name>
<SMSContent>sample string 5</SMSContent>
<SMSType>4</SMSType>
</Cmd>
</Items>
</CommandListResult>