POST api/Command/sendCommand
sendCommand
Request Information
Body Parameters
SendCommondModelName | Description | Type | Additional information |
---|---|---|---|
Imei |
Imei |
string |
None. |
CmdCode | string |
None. |
|
AccessToken |
Token |
string |
None. |
Params |
Params |
string |
None. |
Response Information
Resource Description
NewCommandResultName | Description | Type | Additional information |
---|---|---|---|
State |
Status Code 0:Success 1:Fail |
integer |
None. |
Msg |
Error Message |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "State": 1, "Msg": "sample string 2" }
application/xml, text/xml
Sample:
<NewCommandResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BeeHome.WebMain.Models.Results"> <Msg xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.OpenApi.Models.ResponseModels">sample string 2</Msg> <State xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.OpenApi.Models.ResponseModels">1</State> </NewCommandResult>