1.1.3 • Published 7 years ago
ali-sms-callback v1.1.3
ali-sms-callback
aliyun sms client 阿里云通信nodejs客户端
基于 shgbit-ali-sms-api 修改
安装
$ npm install ali-sms-callback --save
使用
const AliSms = require('ali-sms-callback');
const client = new AliSms({
AccessKeyId: 'xxxxxxxx',
AccessKeySecret: 'xxxxxxx'
});
const options = {
SignName: '短信签名',
TemplateCode: '模版编号',
TemplateParam: '模版参数',
PhoneNumbers:'手机号码'
};
client.SendSms(options, function(err, data){
...
})