- composer安装:
composer require tianqi/dingding
强烈建议通读钉钉企业开发最新官方文档,注意是最新版,与钉钉技术沟通过 目前能看到老版本的接口文档地址。 最细接口文档地址: https://open-doc.dingtalk.com/microapp/serverapi2/gh60vz
针对Laravel做了单独优化,其他任何支持composer的均可使用; 其中$configs格式约定为:
$configs = [
"appsecret" => "appsecret",
"appkey" => "appkey"
];
$dingding = new Dingding($configs);
$dingding->getAccessToken();
$params = ["processCode" => "processCode", "startTime" => time()];
$dingding->getProcessListIds($params);
$params = ["processId" => "processId"];
$dingding->getProcess($params);
$params 参数请参照官方手册
[https://open-doc.dingtalk.com/microapp/serverapi2/cmct1a](https://open-doc.dingtalk.com/microapp/serverapi2/cmct1a)
其中接口发起审批只支持单行输入,多行输入,图片,明细,其他类型会报错,
详情可参考官方钉钉审批接入必读文档[https://open-doc.dingtalk.com/microapp/serverapi2/ca8r99](https://open-doc.dingtalk.com/microapp/serverapi2/ca8r99)
$dingding->createPeocess($params);
$params = ["authCode" => "authCode"];
$dingding->getUserInfo($params);
$params = ["authCode" => "authCode"];
$dingding->getUser($params);
$dingding->getAdmin();
$params = ["userId" => "userId"];
$dingding->getAdminScope($params);
$params = ["authCode" => "authCode"];
$dingding->getUser($params);
$params = ["unionid" => "unionid"];
$dingding->getUseridByUnionid($params);
$dingding->createUser($params);
$dingding->updateUser($params);
$params = ["authCode" => "authCode"];
$dingding->getUser($params);
$params = ["userid" => "userid"];
$dingding->deleteUser($params);
$params = ["id" => "id"];
$dingding->getDeptListIds($params);
$params = ["id" => "id"];
$dingding->getDeptList($params);
$params = ["getDept" => "getDept"];
$dingding->getDept($params);
$params = ["id" => "id"];
$dingding->listParentDeptsByDept($params);
$params = ["userId" => "userId"];
$dingding->listParentDepts($params);
$params = ["onlyActive" => "onlyActive"];
$dingding->getOrgUserCount($params);
$dingding->createDepartment($params);
$dingding->updateDepartment($params);
$params = ["id" => "id"];
$dingding->deleteDepartment($params);
$params = ["userid" => "userid"];
$dingding->getTodoNum($params);
$params = ["userid" => "userid", "offset" => "offset", "size" => "size"];
$dingding->deleteDepartment($params);
任何问题欢迎在Issues 中反馈,如果没有账号可以去 我的博客中留言。
你的反馈会让此项目变得更加完美。
本项目依然不够完善,如果发现bug或有新的功能添加,请在Issues中提交bug(或新功能)描述,在确认后提交你的代码。
暂无