【文件属性】:
文件名称:node-dingtalk:dingtalk的节点sdk
文件大小:34KB
文件格式:ZIP
更新时间:2021-04-27 13:28:49
JavaScript
node-dingtalk-
安装
$ npm i node-dingtalk --save
用法
const DingTalk = require ( 'node-dingtalk' ) ;
const dingtalk = new DingTalk ( {
corpid : '' ,
corpsecret : '' ,
} ) ;
const deparment = dingtalk . department . get ( '1' ) ;
console . log ( deparment ) ;
缓存示例
集群下换成Redis等外部存储从而降低获取AccessToken频率
const CACHE = { } ;
const cache = {
get ( key ) {
if ( CACHE [ key ] && ( CACHE [ key ] . expir
【文件预览】:
node-dingtalk-master
----.travis.yml(171B)
----.eslintrc(83B)
----package.json(1KB)
----.github()
--------PULL_REQUEST_TEMPLATE.md(877B)
--------ISSUE_TEMPLATE.md(768B)
----test()
--------mocha.opts(70B)
--------lib()
--------fixtures()
----LICENSE(1KB)
----appveyor.yml(268B)
----.gitignore(73B)
----History.md(3KB)
----lib()
--------api()
--------dingtalk.js(835B)
----README.md(5KB)
----.eslintignore(23B)
----.autod.conf.js(354B)