批量发送短信

  1. 批量发送的定义,当您需要通过接口给不同的手机号码,发送不同模板,不同变量时,需要使用批量发送接口 x
  2. 如需要使用批量发送接口,需要同时开通消息服务。消息服务开通:https://mns.console.aliyun.com/#/list/cn-hangzhou
  3. 如何使用批量发送功能

1) 创建短信订阅a、在MNS控制台创建Topic

b、进入Topic的“订阅详情”

c、创建短信订阅。

2)发送短信

a、进入Topic列表页面,向Topic发布消息

b、配置短信的相关属性

c、发布消息,并查收短信

3) Http Request Body示例

POST /topics/$TopicName/messages HTTP/1.1
Host: $AccountId.mns.cn-hangzhou.aliyuncs.com
Date: Tue, 08 Dec 2015 06:13:40 GMT
Content-Length:500
Content-Type:text/xml;charset=utf-8
Authorization: MNS 15B4D3461F177624206A:aibzWu1iDEx9LwO56+kHgA3eqmI=
x-mns-version: 2015-06-06
<?xml version="1.0" encoding="UTF-8"?>
<Message xmlns="http://mns.aliyuncs.com/doc/v1">
    <MessageBody>hello topic</MessageBody>
    <MessageAttributes>
        <DirectSMS>{"TemplateCode":"模板Code","FreeSignName":"短信签名","SmsParams":{}}</DirectSMS>
    </MessageAttributes>
</Message>

results matching ""

    No results matching ""