POST api/common/getedushismscode

获取E都市短信验证码

默认返回json数据,若要返回xml格式数据在访问地址后加上xml=true

Request 信息

URI 参数

None.

Body 参数

参数

EdushiSmsCodeModel
名称说明数据类型附加信息
Phone

手机号码

string

Required

Matching regular expression pattern: ^1[3|5|7|8|4][0-9]{9}$

Request 数据格式

application/json, text/json

示例:
{
  "Phone": "sample string 1"
}

application/xml, text/xml

示例:
<EdushiSmsCodeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Common">
  <Phone>sample string 1</Phone>
</EdushiSmsCodeModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

SmsCodeResult
名称说明数据类型附加信息
ExpireAt

有效时间

date

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "ExpireAt": "2020-04-04T07:01:27.595236+08:00",
  "ErrorCode": 0,
  "Msg": "sample string 2"
}

application/xml, text/xml

示例:
<SmsCodeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Common">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 2</Msg>
  <ExpireAt>2020-04-04T07:01:27.595236+08:00</ExpireAt>
</SmsCodeResult>