aliyun sms client 阿里云通信nodejs客户端
$ npm install shgbit-ali-sms-api --save
const AliSms = require('shgbit-ali-sms-api');
const client = new AliSms({
AccessKeyId: 'xxxxxxxx',
AccessKeySecret: 'xxxxxxx'
});
const options = {
SignName: '短信签名',
TemplateCode: '模版编号',
TemplateParam: '模版参数',
PhoneNumbers:'手机号码'
};
client.SendSms(options)
.then()
.catch()