检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
subscribe to topic({topic_id}). Click the following URL to confirm subscription:(If you do not want to subscribe to this topic, ignore this message
消息订阅者,从主题接收消息的订阅终端。 添加订阅时,用户可以根据需要选择不同的传输协议,每种协议对应不同类型的订阅者,具体对应关系如下所示: 邮件传输协议,订阅者为邮箱地址。 短信传输协议,订阅者为手机号码。 HTTP/HTTPS传输协议,订阅者为URL。 FunctionGraph(函数)传输协议,订阅者为一个函数。
内容,如果对应订阅协议的模板内容不存在,将使用Default模板内容发送。 在这一部分中,您可以按照模板格式进行消息推送至您设定的订阅终端地址。在发送模板消息之前,您需要先创建好消息模板,关于消息模板的详细信息请参见《消息通知服务用户指南》的“消息模板管理”章节。 前提条件 所有
若该版本API支持微版本,则返回支持的最大微版本号;若不支持微版本,则返回空。 links Array of LinksItem objects API的URL地址。 表4 LinksItem 参数 参数类型 描述 href String 对应快捷链接。 rel String 快捷链接标记名称。 状态码:400
请求订阅 操作场景 如果订阅者未收到订阅请求消息,用户可以再次请求订阅,请求订阅的流控规则请见订阅确认流控说明。可一次向一个或多个订阅终端发送确认请求。 请求订阅 登录管理控制台。 在管理控制台左上角单击图标,选择区域和项目。 在页面左上角单击图标,选择“管理与监管” > “消息通知服务
(响应消息头中X-Subject-Token的值)。 表3 请求Body参数 参数 是否必选 参数类型 描述 platform_principal 是 String 对于HMS平台是APP ID,只能包含英文字母和数字,最大20个字符。 对于苹果APNS、APNS_SandBox
若该版本API支持微版本,则返回支持的最大微版本号;若不支持微版本,则返回空。 links Array of LinksItem objects API的URL地址。 表4 LinksItem 参数 参数类型 描述 href String 对应快捷链接。 rel String 快捷链接标记名称。 状态码:400
5sghjlse684b", "name": "project_name", "description": "", "links": { "next": null,
HMS是为开发者提供的消息推送平台。 APNS和APNS_SANDBOX是用于推送iOS消息的服务平台。 platform_principal 是 String 对于HMS平台是APP ID,只能包含英文字母和数字,最大20个字符。 对于苹果APNS、APNS_SandBox
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
String 不同协议对应不同的endpoint(接受消息的接入点)。目前支持的协议包括: “email”:邮件传输协议,endpoint为邮箱地址。 “sms”:短信传输协议,endpoint为手机号码。 “functiongraph” FunctionGraph(函数)传输协议,endpoint为一个函数
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
短信发送限制 关于短信发送的流控策略,请参见“订阅确认流控说明”章节。 关于消息发送的限制,请参见“服务韧性”章节。 父主题: 附录
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
id}/notifications/applications/{application_urn} { "platform_principal" : "appId", "platform_credential" : "appSecret" } 响应示例 无 状态码 状态码
None 操作指导 消息通知服务 SMN 发布JSON消息 03:32 发布JSON消息 消息通知服务 SMN 发布模板消息 05:24 发布模板消息