lucifersf/dingtalk-third-enterprise

钉钉三方企业应用

1.0.0 2019-10-11 10:38 UTC

This package is auto-updated.

Last update: 2024-03-27 14:56:06 UTC


README

封装了钉钉第三方企业应用相关的接口。

环境要求

安装

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