lucifersf / dingtalk-third-enterprise
钉钉三方企业应用
1.0.0
2019-10-11 10:38 UTC
Requires
- php: >=7.0
- monolog/monolog: ^1.23
- overtrue/http: ^1.1.2
- pimple/pimple: ^3.0
This package is auto-updated.
Last update: 2025-03-27 17:21:17 UTC
README
封装了钉钉第三方企业应用相关的接口。
环境要求
- PHP 7.0+
- Composer
安装
composer require lucifersf/dingtalk-third-enterprise
使用
use Lucifer\DingTalk\ThirdParty\Enterprise\Application; $config = [ 'suite_key' => 'your suite_key', 'suite_secret' => 'your suite_secret' ]; $app = new Application($config); //获取企业凭证 $app->auth->getAccessToken($suiteTicket, $corpId); //第三方企业应用免登获取用户userid $app->user->withAccessToken($accessToken)->getUserId($code); //获取用户详情 $app->user->withAccessToken($accessToken)->get($userId);
License
MIT