POST api/Command/SetH002Voice

Coe sets up the alert voice

Request Information

Body Parameters

SetH002VoiceModel
NameDescriptionTypeAdditional information
Type

type

integer

None.

VoiceBase64

Sound base64 character string (mp3 type)

string

None.

IMEI

device imei

string

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:
{
  "Type": 1,
  "VoiceBase64": "sample string 2",
  "IMEI": "sample string 3",
  "Token": "sample string 4",
  "Language": "sample string 5",
  "AppId": "sample string 6"
}

application/xml, text/xml

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

Response Information

Resource Description

State status code
0 succeed
1100 device does not exist
4000 Voice content is empty

CommandResult
NameDescriptionTypeAdditional information
Content

string

None.

Message

string

None.

WIFIItem

Collection of WIFIResult

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Content": "sample string 1",
  "Message": "sample string 2",
  "WIFIItem": [
    {
      "WIFIName": "sample string 1",
      "SSID": "sample string 2",
      "IsCurrentLink": true,
      "Password": "sample string 4"
    },
    {
      "WIFIName": "sample string 1",
      "SSID": "sample string 2",
      "IsCurrentLink": true,
      "Password": "sample string 4"
    }
  ],
  "State": 3
}

application/xml, text/xml

Sample:
<CommandResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>3</State>
  <Content>sample string 1</Content>
  <Message>sample string 2</Message>
  <WIFIItem>
    <WIFIResult>
      <IsCurrentLink>true</IsCurrentLink>
      <Password>sample string 4</Password>
      <SSID>sample string 2</SSID>
      <WIFIName>sample string 1</WIFIName>
    </WIFIResult>
    <WIFIResult>
      <IsCurrentLink>true</IsCurrentLink>
      <Password>sample string 4</Password>
      <SSID>sample string 2</SSID>
      <WIFIName>sample string 1</WIFIName>
    </WIFIResult>
  </WIFIItem>
</CommandResult>