
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
dingtalk-node
Advanced tools
npm install dingtalk-node
var API = require('dingtalk-node');
var api = new API({
domain: 'https://oapi.dingtalk.com',
cid: 'CorpID',
secret: 'CorpSecret',
redirect_uri: 'REDIRECT_URI'
});
//获取部门列表
api.departmentList(function(err, res) {
var ds = res.department;
ds.forEach(function(item) {
console.log(item);
})
});
API命名为驼峰式,转换规则为lodash#camelCase 例如:
//获取部门列表接口
department/list
//获取部门成员
user/simplelist
//注册事件回调接口
call_back/register_call_back
转为
departmentList
userSimplelist
callBackRegisterCallBack
调用时
//获取部门列表
api.departmentList(function(err, res) {
console.log(res);
})
//获取部门成员
api.userSimplelist({department_id: 1}, function(err, res) {
console.log(res);
})
//注册事件回调
api.callBackRegisterCallBack({
call_back_tag: [],
token: '',
aes_key: '',
url: ''
}, function(err, res){
console.log(res);
})
钉钉api列表请参考官方文档
FAQs
dingtalk sdk for nodejs
The npm package dingtalk-node receives a total of 3 weekly downloads. As such, dingtalk-node popularity was classified as not popular.
We found that dingtalk-node 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
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.