POST api/Command/CommandValue

Get the device instruction value

Request Information

Body Parameters

Get the command value parameters

CommandValueModel
NameDescriptionTypeAdditional information
CommandCode

instruction code

string

None.

DeviceId

Device id

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CommandCode": "sample string 1",
  "DeviceId": 2,
  "Token": "sample string 3",
  "Language": "sample string 4",
  "AppId": "sample string 5"
}

application/xml, text/xml

Sample:
<CommandValueModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 5</AppId>
  <Language>sample string 4</Language>
  <Token>sample string 3</Token>
  <CommandCode>sample string 1</CommandCode>
  <DeviceId>2</DeviceId>
</CommandValueModel>

Response Information

Resource Description

State ֵΪ:
0. Indicates success

CommandValueResult
NameDescriptionTypeAdditional information
Code

instruction code

string

None.

Name

string

None.

CmdValue

Instruction initialization

string

None.

SMSType

The next instruction is 0: network 1: text 2: network and SMS

integer

None.

SMSContent

SMS instruction format

string

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "Name": "sample string 2",
  "CmdValue": "sample string 3",
  "SMSType": 4,
  "SMSContent": "sample string 5",
  "State": 6
}

application/xml, text/xml

Sample:
<CommandValueResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>6</State>
  <CmdValue>sample string 3</CmdValue>
  <Code>sample string 1</Code>
  <Name>sample string 2</Name>
  <SMSContent>sample string 5</SMSContent>
  <SMSType>4</SMSType>
</CommandValueResult>