POST api/Command/SetH002Voice

科强设置提醒语音

Request Information

Body Parameters

SetH002VoiceModel
NameDescriptionTypeAdditional information
Type

类型

integer

None.

VoiceBase64

声音base64 字符串 (mp3 格式)

string

None.

IMEI

设备 IMEI

string

None.

Token

登录后获取到的 Token

string

None.

Language

语言选项

string

None.

AppId

APP应用标识

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 状态码
0 成功
1100 设备不存在
4000 语音内容为空

CommandResult
NameDescriptionTypeAdditional information
Content

string

None.

Message

string

None.

WIFIItem

Collection of WIFIResult

None.

State

状态码

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>