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 = ;client = conf;
Basic Usage
Send a short message:
const params = PhoneNumbers: "" SignName: '' TemplateCode: 'SMS_*********' TemplateParam: ''; let r = client;
Send batched short messages(TODO)
......
You could find more detailed usage in test cases from test directory.
Testing
fibjs test