@syedu/nodetool-dingtalk
v1.0.2
Published
```javascript const DingEduApiService = require('@syedu/nodetool-dingtalk').DingEduApiService;
Downloads
1
Readme
代码示例
const DingEduApiService = require('@syedu/nodetool-dingtalk').DingEduApiService;
let ak = {
appkey: "xxxx",
appsecret: "xxxxx",
};
let dasTest = new DingEduApiService(ak);
async function main() {
let result = await dasTest.getUserRelationData();
console.log(`result: ${JSON.stringify([...result])}, size: ${result.size}`);
}
main();
返回的结果示例
[
[
"24285333671236719",
{
"userId": "24285333671236719",
"userName": "用户一",
"classList": [
480098120
],
"childrenList": []
}
],
[
"650566254820195435",
{
"userId": "650566254820195435",
"userName": "用户二",
"classList": [
480098120,
356744065,
529873439
],
"childrenList": [
"3000000000096803461"
]
}
]
]