POST api/SleepAccount/VerificationCode

发送验证码

Request Information

URI Parameters

None.

Body Parameters

VerificationCodeReq
NameDescriptionTypeAdditional information
Mobile

手机号

string

None.

SendReason

发送原因,0为注册,1为绑定,2为忘记密码。

integer

None.

ProductId

产品编号

integer

None.

Token

令牌,唯一标识,主要用来验权

string

None.

ChannalId

渠道号

string

None.

Version

外部版本

string

None.

language

语言

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Mobile": "sample string 1",
  "SendReason": 2,
  "ProductId": 3,
  "Token": "sample string 4",
  "ChannalId": "sample string 5",
  "Version": "sample string 6",
  "language": "sample string 7"
}

application/xml, text/xml

Sample:
<VerificationCodeReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <ChannalId>sample string 5</ChannalId>
  <ProductId>3</ProductId>
  <Token>sample string 4</Token>
  <Version>sample string 6</Version>
  <language>sample string 7</language>
  <Mobile>sample string 1</Mobile>
  <SendReason>2</SendReason>
</VerificationCodeReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResponse
NameDescriptionTypeAdditional information
Message

消息

string

None.

Status

状态,默认情况下,1为成功。0为失败。99为权限验证失败。

integer

None.

Response Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<BaseResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <Message>sample string 1</Message>
  <Status>2</Status>
</BaseResponse>