当前位置:网站首页>阿里云国际版回执消息简介与配置流程
阿里云国际版回执消息简介与配置流程
2022-07-27 08:11:00 【87cloud】
回执消息是在使用API接口发送短信之后,通过配置MNS消息队列消费模式或HTTP批量推送模式,接收短信发送状态的结果和用户回复的短信内容,帮助您掌握短信的发送成功率和其他业务提供支持。下面和87cloud一起了解阿里云国际版回执消息简介与配置流程:
说明
- 如果出现网络异常、响应超时等情况,可能导致回执消息推送重复、回执消息获取失败等问题。
- 由于系统存在缓存,开启回执消息后不会立即全量推送,建议等待3分钟后确认是否已生效。
回执消息模式
接收回执消息的模式有MNS消息队列消费模式和HTTP批量推送模式两种,您可根据实际情况选择合适的模式接收回执消息。
- MNS消息队列消费模式
MNS消息队列消费模式表示通过MNS的Queue模型来接收指定地域的短信回执消息和上行短信内容。云通信的所有业务消息都支持MNS消息服务向外发送。用户在短信服务控制台启用MNS消息服务订阅指定的消息类型(MessageType)时,系统会自动生成该类型的独立消息队列及名称(QueueName)。您可使用此消息队列名称(QueueName)和消息类型(MessageType),通过调用SDK从后台来获取队列中的短信状态报告。
- HTTP批量推送模式
HTTP批量推送模式表示通过HTTP POST方式发送消息到指定的Web URL。在短信服务控制台设置HTTP回调URL(callback_url)后,当业务消息产生时,系统会使用HTTP请求以POST方式将业务消息(即短信状态报告)发送到指定的回调URL上,用户可直接接收此消息。
回执消息类型
选择回执消息模式之后,您还需要选择消息类型,接收不同场景下的回执消息。根据短信发送状态、用户回复的消息内容等不同场景,我们提供了如下消息类型,您可根据业务需要进行选择。
| 名称 | 描述 | MNS消息队列消费模式 | HTTP批量推送模式 |
|---|---|---|---|
| SmsReport(短信下行回执报告消息) | 下行是指用户收到的短信,例如运营商发送的消息通知、业务提醒等短信。通过订阅SmsReport短信下行状态报告,可以获知每条短信的发送情况,了解短信是否达到终端用户的状态与相关信息。 | SmsReport | SmsReport |
配置回执消息接收模式
如果您需要接收回执消息,必须先在短信服务控制台上开启消息接收。以下示例展示如何配置短信下行回执消息报告。
- 登录短信服务控制台。
- 在左侧导航栏,选择系统设置 > 通用设置。
- 在通用设置页面,单击接口API页签。
- 在云通信消息接收区域,开启指定模式。
- MNS消息队列消费模式
开启MNS消息队列消费模式左侧的功能开关。

- HTTP批量推送模式
- 开启HTTP批量推送模式左侧的功能开关。
- 填写接收地址,地址示例
- 单击保存。

- MNS消息队列消费模式
MNS消息队列消费模式请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| MessageType | String | 是 | SmsReport | 消息类型:SmsReport。 |
| QueueName | String | 是 | Alicom-Queue-*****-SmsReport | 提供的消息队列名称。登录短信服务控制台,选择系统设置 > 通用设置 > 接口API,查看队列名称。 |
边栏推荐
- 代码接口自动化的有点
- 3D laser slam: Interpretation of logo-loam paper --- Abstract
- What is a rebound shell? What's the use of bouncing shells?
- 反弹shell是什么?反弹shell有什么用?
- [resolved] the new version of pychart (2022) connects to the server to upload files and reports an error of "command Rsync is not found in path", and the files cannot be synchronized
- What is the real HTAP? (1) Background article
- 物来顺应,未来不迎,当时不杂,既过不恋
- 如何在 60 秒内去分析和定位问题?
- ERP production operation control Huaxia
- npm的使用
猜你喜欢
![[netding cup 2020 rosefinch group]nmap 1 two solutions](/img/fa/b1349cb42b5768b7510217239ba73a.png)
[netding cup 2020 rosefinch group]nmap 1 two solutions

Translation character '/b' in C #

SSTI template injection

What is the real HTAP? (1) Background article

Attack and defense World Lottery

The seta 2020 international academic conference will be held soon. Welcome to attend!

擎创科技加入龙蜥社区,共建智能运维平台新生态

Use of string type "PHP Basics"
![[ten thousand words long article] thoroughly understand load balancing, and have a technical interview with Alibaba Daniel](/img/fc/1ee8b77d675e34da2eb8574592c489.png)
[ten thousand words long article] thoroughly understand load balancing, and have a technical interview with Alibaba Daniel
![[applet] the upload of the wechat applet issued by uniapp failed error: error: {'errcode': -10008,'errmsg':'Invalid IP](/img/0c/da2ffc00834793c7abc0f7ebe6321b.png)
[applet] the upload of the wechat applet issued by uniapp failed error: error: {'errcode': -10008,'errmsg':'Invalid IP
随机推荐
【Day42 文献精读】A Bayesian Model of Perceived Head-Centered Velocity during Smooth Pursuit Eye Movement
Debug: generic related "unresolved external symbols"
Day111. Shangyitong: integrate nuxt framework, front page data, hospital details page
Shell scripts related
Stored procedure trial 2 -- establish a test table to test different types of stored procedures
信息化项目风险控制与应用
QT creator code style plug-in beautifier
抽象工厂模式
pytorch_demo1
一段平平无奇的秋招经历
Redis configuration file download
Solid smart contract development - 3.3-solid syntax control structure
Attack and defense World Lottery
Data extraction 2
[day42 literature intensive reading] a Bayesian model of perfect head centered velocity during smooth pursuit eye movement
My senior
Happy holidays, everyone
浅谈数据安全
Harbor can't log in with the correct password
[applet] the upload of the wechat applet issued by uniapp failed error: error: {'errcode': -10008,'errmsg':'Invalid IP

