new SmsMultiSender(sdk, sdk)
SmsMultiSender
Parameters:
Name | Type | Description |
---|---|---|
sdk |
string | appid |
sdk |
string | appkey |
Methods
send(SMS, nation, phone, SMS, extend, ext, request)
Send a SMS messages to multiple phones at once
Parameters:
Name | Type | Description |
---|---|---|
SMS |
number | message type, Enum{0: normal SMS, 1: marketing SMS} |
nation |
string | dialing code, eg. china is 86, usa is 1 |
phone |
string | number |
SMS |
string | message content |
extend |
string | field, default is empty string |
ext |
string | field, content will be returned by server as it is |
request |
function | handler, method signature: function(error, response, responseData) |
sendWithParam(nation, multiple, template, template, Sms, extend, ext, request)
Send a SMS messages with template parameters to multiple phones at once
Parameters:
Name | Type | Description |
---|---|---|
nation |
string | dialing code, eg. china is 86, usa is 1 |
multiple |
array | phone numbers |
template |
number | id |
template |
array | parameters |
Sms |
string | user sign |
extend |
string | field, default is empty string |
ext |
string | field, content will be returned by server as it is |
request |
function | handler, signature: function(error, response, responseData) |