
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@axolo/egg-tencent-cloud
Advanced tools
Tencent Cloud SDK 4.x plugin for Egg.js.
npm i @axolo/egg-tencent-cloud --save
// {app_root}/config/plugin.js
exports.tencentCloud = {
enable: true,
package: '@axolo/egg-tencent-cloud',
};
see config/config.default.js for more detail. for example:
// {app_root}/config/config.default.js
exports.tencentCloud = {
client: {
// tencentCloud, // tencentcloud-sdk-nodejs user-defined
// region: 'ap-guangzhou',
// reqMethod: 'POST',
// reqTimeout: 60,
// signMethod: 'HmacSHA256',
secretId: 'SECRET_ID',
secretKey: 'SECRETK_EY',
model: 'sms',
version: 'v20190711',
action: 'SendStatusStatistics',
params: {
SmsSdkAppid: 'SMS_SDK_APPID',
Limit: 0,
Offset: 0,
},
};
the member of Tencent Cloud SDK Model client. usage like:
'use strict';
const Controller = require('egg').Controller;
class TencentCloudController extends Controller {
async index() {
const { app, ctx } = this;
const smsCount = app.tencentCloud.get('smsCount');
const result = await smsCount.client.SmsPackagesStatistics({
...smsCount.options.params,
Limit: 10,
});
ctx.body = result;
}
}
module.exports = TencentCloudController;
params
| params | type | description |
|---|---|---|
| params | object | params of Tencent Cloud SDK Action |
return
a Promise of Tencent Cloud SDK Model client Action response.
'use strict';
const dayjs = require('dayjs');
const Controller = require('egg').Controller;
class TencentCloudController extends Controller {
async index() {
const { app, ctx } = this;
const smsCount = app.tencentCloud.get('smsCount');
const now = dayjs();
const lastMonth = now.subtract(1, 'months');
const StartDateTime = lastMonth.format('YYYYMMDDhh');
const EndDataTime = now.format('YYYYMMDDhh');
const result = await smsCount.action({ StartDateTime, EndDataTime });
ctx.body = result;
}
}
module.exports = TencentCloudController;
Please open an issue here.
FAQs
Tencent Cloud SDK 4.x plugin for Egg.js.
We found that @axolo/egg-tencent-cloud demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.