
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.
node-taobao-topclient
Advanced tools
为了更好的使用ES6/7开发,对淘宝官方Node.js版的topsdk进行修改,使用方法和官方一致,不同的是返回Promise结果。淘宝官方的sdk中使用urllib作为Http工具,这里修改为使用request。
npm install node-taobao-topclient --save
import TopClient from 'node-taobao-topclient';
const client = new TopClient({
appkey: 'appkey',
appsecret: 'appsecret',
});
client.execute('alibaba.aliqin.fc.sms.num.send', {
extend: '123456',
sms_type: 'normal',
sms_free_sign_name: '阿里大于',
rec_num: '12345678912',
sms_template_code: 'SMS_8985285',
sms_param: {
customer: 'Ray'
}
})
.then((result) => {
console.log(result);
})
.catch((err) => {
console.error(err);
});
import TopClient from 'node-taobao-topclient';
async function sendSms() {
const client = new TopClient({
appkey: 'appkey',
appsecret: 'appsecret',
REST_URL: 'https://eco.taobao.com/router/rest'
});
let result;
try {
result = await client.execute('alibaba.aliqin.fc.sms.num.send', {
extend: '123456',
sms_type: 'normal',
sms_free_sign_name: '阿里大于',
rec_num: '12345678912',
sms_template_code: 'SMS_8985285',
sms_param: {
customer: 'Ray'
}
});
} catch (err) {
console.error(err);
}
console.log(result);
}
默认是POST,如果使用GET等,execute的第三个参数请输入,如:
...
client.execute('alibaba.aliqin.fc.sms.num.send', {
extend: '123456',
...
}, 'GET')
...
MIT
FAQs
taobao topsdk for node.js(support es6/7,promise,async/await)
The npm package node-taobao-topclient receives a total of 652 weekly downloads. As such, node-taobao-topclient popularity was classified as not popular.
We found that node-taobao-topclient 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.