fib-ali-sms

0.1.0 • Public • Published

fib-k8s-client

NPM version

fib-k8s-client is an Aliyun short message service client for FIBJS.

Install

Via fibjs:

fibjs --install fib-ali-sms

Or, via npm:

npm install fib-ali-sms

Usage

config

const conf = {
    "accessKeyId": "",      // accessKeyId applied from Aliyun
    "secretAccessKey": "",  // secretAccessKey applied from Aliyun
}

Client Initialization

 
const SMSClient = require("fib-ali-sms");
client = new SMSClient(conf);

Basic Usage

Send a short message:

const params = {
    PhoneNumbers: "",
    SignName: '',
    TemplateCode: 'SMS_*********',
    TemplateParam: '',
};
 
let r = client.sendSMS(params);

Send batched short messages(TODO)

......

You could find more detailed usage in test cases from test directory.

Testing

fibjs test

License

GPL - 3.0

Readme

Keywords

Package Sidebar

Install

npm i fib-ali-sms

Weekly Downloads

2

Version

0.1.0

License

GPL-3.0

Unpacked Size

42.5 kB

Total Files

7

Last publish

Collaborators

  • luoyhang003