POST api/ExcellentSchool/SendSmsValidateCode

短信方式下发验证码给手表 [专用接口]

Request Information

Body Parameters

SendSmsValidateCodeModel
NameDescriptionTypeAdditional information
DeviceId

设备 id

integer

None.

SimCard

SIM卡号

string

None.

Token

登录后获取到的 Token

string

None.

Language

语言选项

string

None.

AppId

APP应用标识

string

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<SendSmsValidateCodeModel 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>
  <DeviceId>1</DeviceId>
  <SimCard>sample string 2</SimCard>
</SendSmsValidateCodeModel>

Response Information

Resource Description

State状态码:
0. 表示成功
1000. 设备不存在
4004. 设备还未初始化
4005. SIM卡不合法

SendSmsValidateCodeResult
NameDescriptionTypeAdditional information
Message

结果说明

string

None.

State

状态码

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "State": 2
}

application/xml, text/xml

Sample:
<SendSmsValidateCodeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>2</State>
  <Message>sample string 1</Message>
</SendSmsValidateCodeResult>