aliyunsms

1.0.2 • Public • Published

aliyun-sms

A Simple Aliyun SMS Service Service middleware, Based on Promise

How to install

npm install aliyunsms

Usage

Detail param document

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

Error

Offical Error Code Document

Readme

Keywords

Package Sidebar

Install

npm i aliyunsms

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • scarletmu