1.0.2 • Published 7 years ago

aliyunsms v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago