aliyunsms
v1.0.2
Published
Aliyun SMS Service
Downloads
4
Readme
aliyun-sms
A Simple Aliyun SMS Service Service middleware, Based on Promise
How to install
npm install aliyunsms
Usage
const sms = require('aliyunsms');
/**
* Init Config, All value is required
*/
const config = {
accessKeyID : '', //String
accessKeySecret : '', //String
paramString : {}, //Object
recNum : [''], //Array
signName : '', //String
templateCode : '', //String
};
sms.send(config)
.then((res) => {
//On Success,return a RequestId
})
.catch((err) => {
//On Error
})