cjango / think-dingtalk
cjango dingtalk sdk for thinkphp
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:think-extend
Requires
- php: >=7.0
- guzzlehttp/guzzle: ^6.3
- topthink/think-installer: ^1.0
Requires (Dev)
- topthink/framework: ^5.0
This package is auto-updated.
Last update: 2023-01-25 17:43:30 UTC
README
===============
钉钉SDK For thinkphp5
该项目依赖于thinkphp5.0.*
安装
composer require cjango/think-dingtalk
配置
配置文件位于
application/extra/dingtalk.php
return [
];
使用方法
// 引用命名空间
use cjango\dingtalk\Dingtalk;
// 获取全部关注用户
Dingtalk::get('user')->all();
// 网页用户直接跳转授权
Dingtalk::get('oauth')->url($callback);
// 回调页面中直接调用
Dingtalk::get('oauth')->token();
// 获取错误信息
Dingtalk::error()