
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.
super-dingtalk
Advanced tools
DingTalk client for Node.js 钉钉 Node.js 客户端
$ npm install super-dingtalk --save
各个方法需要的 Token 在接口请求(request、get、post)自动获取和续期,也可以通过 getToken() 获得
/**
* 通用请求接口
*
* @param {String} method - GET、POST
* @param {String} api - API地址(以 / 开头)
* @param {Object} query - 请求URL参数(获取AccessToken后默认会带上)
* @param {String} body - POST请求的body(JSON需要JSON.stringify)
* @param {String|Array} key - 返回数据中取出需要的key(不传全部ret返回)
*
* @returns {Promise}
*/
request(method, api, query, body, key)
// GET 方法简化接口
get(api, query, key)
// POST 方法简化接口
post(api, body, key)
使用方法: dingtalk.js
const DingTalk = require('super-dingtalk').DingTalk;
const client = new DingTalk({
corpId: 'xxxxx',
secret: 'xxxxx',
});
使用方法: dtoauth.js
const DTOAuth = require('../lib').DTOAuth;
const oauth = new DTOAuth({
appId: 'xxx',
appSecret: 'xxx',
});
// 获取扫描登录链接
const url = oauth.getQRParmasUrl('http://blog.yourtion.com');
其他操作详见测试与相关文档
getQRParmasUrl(redirectUri)getToken()getPersistentCode(tmpAuthCode)getSnsToken(openId, persistentCode)getUserInfo(snsToken)getUserInfoFromCode(tmpAuthCode)参考: 免登服务
getToken()getTicket()getSign(url)get('/user/get_org_user_count', { onlyActive: 0|1 }, 'count')get('/department/list', { id: 1|"parentid" }, 'department')get('/department/get', { id: "department_id" })get('/user/getUseridByUnionid', { unionid }, 'userid')get('/user/get', { userid })get('/user/simplelist', pamras, 'userlist')get('/user/list', pamras, 'userlist')FAQs
DingTalk and OAuth client for Node.js
The npm package super-dingtalk receives a total of 12 weekly downloads. As such, super-dingtalk popularity was classified as not popular.
We found that super-dingtalk 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.