0.1.0 • Published 5 years ago
fib-ali-sms v0.1.0
fib-k8s-client
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
0.1.0
5 years ago