Commit 8798c2d57cf5f0efacc1902ccfdd6282b4de5170
1 parent
693ab12f
Update 1.2 发送邮件接口.md
Showing
1 changed file
with
9 additions
and
15 deletions
10.消息云/1.2 发送邮件接口.md
| @@ -9,12 +9,11 @@ | @@ -9,12 +9,11 @@ | ||
| 9 | #### 请求参数说明: | 9 | #### 请求参数说明: |
| 10 | | 参数名 | 参数类型 | 必选 | 参数说明 | | 10 | | 参数名 | 参数类型 | 必选 | 参数说明 | |
| 11 | | :-----------: | :------: | :------: | :------: | | 11 | | :-----------: | :------: | :------: | :------: | |
| 12 | -| appId | string | true | 应用ID | | ||
| 13 | -| smsTemplateId | string | true | 短信模板ID(ID列表需确定,见后台管理) | | ||
| 14 | -| smsSignId | string | false | 短信签名ID(ID列表需确定),不传则按默认值xxx处理 | | ||
| 15 | -| mobile | string | true | 手机号 | | ||
| 16 | -| content | string | true | 短信内容参数(内容组织形式需要确定) | | ||
| 17 | -| sign | string | true | 签名 | | 12 | +| emailAddr | string | true | 收件人地址 | |
| 13 | +| title | string | true | 邮件主题 | | ||
| 14 | +| msg | string | false | 邮件内容 | | ||
| 15 | +| templateId | string | true | 邮件模板ID(ID列表需确定,见后台管理) | | ||
| 16 | + | ||
| 18 | ----- | 17 | ----- |
| 19 | #### 返回格式说明: | 18 | #### 返回格式说明: |
| 20 | ``` | 19 | ``` |
| @@ -24,17 +23,12 @@ | @@ -24,17 +23,12 @@ | ||
| 24 | } | 23 | } |
| 25 | 24 | ||
| 26 | { | 25 | { |
| 27 | - "errorCode":"100001", | ||
| 28 | - "errorMessage":"短信发送次数过多" | ||
| 29 | -} | ||
| 30 | - | ||
| 31 | -{ | ||
| 32 | - "errorCode":"100002", | ||
| 33 | - "errorMessage":"短信发送失败" | 26 | + "errorCode":"101001", |
| 27 | + "errorMessage":"邮件发送失败" | ||
| 34 | } | 28 | } |
| 35 | 29 | ||
| 36 | { | 30 | { |
| 37 | - "errorCode":"100000", | ||
| 38 | - "errorMessage":"消息其它异常" | 31 | + "errorCode":"102002", |
| 32 | + "errorMessage":"邮件模板不存在" | ||
| 39 | } | 33 | } |
| 40 | ``` | 34 | ``` |
| 41 | \ No newline at end of file | 35 | \ No newline at end of file |