ddinit
Version:
封装了一些常用的钉钉小程序服务端API,获取员工周期性打卡结果(每日,任意时间,上周,上月...),在/离职员工列表,获取用户/部门信息、发送工作消息、审批流等
9 lines (5 loc) • 310 B
text/typescript
import ddCli from '../src/core'
console.log('Initialize dd-cli and set up appkey and sercert, then wait for employee to complete.')
const dd = new ddCli('appkey***********','sercet******')
console.log('When employee is complete, all kinds of functions can be called to complete the task')
dd.gettoDayData()