1.0.0 • Published 8 years ago

shgbit-ali-sms-api v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

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()