Commit b2dc1c2ce53ddec4aa7a233273087764a5cb2f3e
1 parent
88b2c911
add
Showing
1 changed file
with
41 additions
and
0 deletions
10.消息云/1.2 发送邮件接口.md
0 → 100644
| 1 | +/* Title: 1.1 发送短信接口 */ | ||
| 2 | +### 发送短信接口 | ||
| 3 | +----- | ||
| 4 | +#### URL: http://api.cnlive.com/open/api2/sms/sendSms | ||
| 5 | +----- | ||
| 6 | +#### 请求方式: HTTP POST | ||
| 7 | +----- | ||
| 8 | +#### 返回格式: JSON | ||
| 9 | +----- | ||
| 10 | +#### 请求参数说明: | ||
| 11 | +| 参数名 | 参数类型 | 必选 | 参数说明 | | ||
| 12 | +| :-----------: | :------: | :------: | :------: | | ||
| 13 | +| appId | string | true | 应用ID | | ||
| 14 | +| smsTemplateId | string | true | 短信模板ID(ID列表需确定,见后台管理) | | ||
| 15 | +| smsSignId | string | false | 短信签名ID(ID列表需确定),不传则按默认值xxx处理 | | ||
| 16 | +| mobile | string | true | 手机号 | | ||
| 17 | +| content | string | true | 短信内容参数(内容组织形式需要确定) | | ||
| 18 | +| sign | string | true | 签名 | | ||
| 19 | +----- | ||
| 20 | +#### 返回格式说明: | ||
| 21 | +``` | ||
| 22 | +{ | ||
| 23 | + "errorCode":"0", | ||
| 24 | + "errorMessage":"成功" | ||
| 25 | +} | ||
| 26 | + | ||
| 27 | +{ | ||
| 28 | + "errorCode":"100001", | ||
| 29 | + "errorMessage":"短信发送次数过多" | ||
| 30 | +} | ||
| 31 | + | ||
| 32 | +{ | ||
| 33 | + "errorCode":"100002", | ||
| 34 | + "errorMessage":"短信发送失败" | ||
| 35 | +} | ||
| 36 | + | ||
| 37 | +{ | ||
| 38 | + "errorCode":"100000", | ||
| 39 | + "errorMessage":"消息其它异常" | ||
| 40 | +} | ||
| 41 | +``` | ||
| 0 | \ No newline at end of file | 42 | \ No newline at end of file |