shgbit-ali-sms-api
v1.0.0
Published
Aliyun sms client 阿里云通信nodejs客户端
Downloads
3
Readme
shgbit-ali-sms-api
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()