Skip to content

kelvv/aliyun-sms-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

阿里云sms服务sdk for Nodejs

安装

npm install aliyun-sms-node

使用

var SMS = require('aliyun-sms-node');

var sms = new SMS({
  AccessKeyId: '填写你的AccessKeyId,可以登录阿里云查找',
  AccessKeySecret: '填写你的AccessKeySecret,可以登录阿里云查找'
});

sms.send({
  Format: 'JSON',
  Action: 'SendSms',
  TemplateParam: '{"code":"1234"}',
  PhoneNumbers: '13516534103',
  SignName: '北京月文化',
  TemplateCode: 'SMS_77730013'
}) //返回Promise

文档

阿里云API接口

About

sms sdk for aliyun

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published