0.1.0 • Published 5 years ago

fib-ali-sms v0.1.0

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
5 years ago

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