0.0.16-alpha • Published 4 years ago
egg-tencentcloud-sms v0.0.16-alpha
egg-tencentcloud-sms
See tencent cloud sms documents for more help
WARNING: Not tested yet, use it carefully
Install
$ npm i egg-tencentcloud-sms --save
Usage
// {app_root}/config/plugin.js
exports.tencentcloudSms = {
enable: true,
package: 'egg-tencentcloud-sms',
};
Configuration
// {app_root}/config/config.default.js
exports.tencentcloudSms = {
secretID: 'you tencent cloud secret id',
secretKEY: 'you tencent cloud secret key',
};
see config/config.default.js for more detail.
Example
this.app.tencentSms.SendSms({
PhoneNumberSet: '+8613211112222',
TemplateID: 123123,
SmsSdkAppid: 123123,
Sign: 'sign content',
})
.then((res) => {
// do someting...
})
.catch((err) => {
err.message
err.code
err.requestId
err.getMessage()
err.getRequestId()
})
Questions & Suggestions
Please open an issue here.
License
0.0.15-alpha
4 years ago
0.0.14-alpha
4 years ago
0.0.16-alpha
4 years ago
0.0.13-alpha
4 years ago
0.0.11-alpha
4 years ago
0.0.12-alpha
4 years ago
0.0.1-alpha
4 years ago