Commit adefbef882d7abd4c2a1076f52ac7cba151208d1
1 parent
f49abb01
发送短信wiki
Showing
1 changed file
with
33 additions
and
0 deletions
10.消息云/1.1 发送短信接口.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 | +| spId | String | true | 应用ID | | ||
| 14 | +| mobile | String | true | 接收短信的电话号码 | | ||
| 15 | +| content | String | true | 发送的短信内容 | | ||
| 16 | +----- | ||
| 17 | +#### 返回格式说明: | ||
| 18 | +``` | ||
| 19 | +{ | ||
| 20 | + "errorCode":"0", | ||
| 21 | + "errorMessage":"成功" | ||
| 22 | +} | ||
| 23 | + | ||
| 24 | +{ | ||
| 25 | + "errorCode":"100002", | ||
| 26 | + "errorMessage":"短信发送失败" | ||
| 27 | +} | ||
| 28 | + | ||
| 29 | +{ | ||
| 30 | + "errorCode":"50000", | ||
| 31 | + "errorMessage":"其它异常" | ||
| 32 | +} | ||
| 33 | +``` | ||
| 0 | \ No newline at end of file | 34 | \ No newline at end of file |