jancojie / saas-his-api
岚时His系统的接口
dev-master
2023-04-10 05:13 UTC
Requires
- php: >=7.2
- guzzlehttp/guzzle: ^7.5
This package is auto-updated.
Last update: 2025-03-10 09:23:58 UTC
README
介绍
岚时HIs接口
安装教程
- composer require "jancojie/saas-his-api"
使用说明
use SaasHisApi\Request\OpenApiAuthTokenGetRequest;
use SaasHisApi\Request\OpenApiUserListRequest;
use SaasHisApi\SaasHisClient;
$client = new SaasHisClient();
$tokenRequest = new OpenApiAuthTokenGetRequest;
$tokenRequest->setAppKey('');
$tokenRequest->setAppSecret('');
$res = $client->execute($tokenRequest);
if (isset($data['errorCode']) && $data['errorCode'] == 200) {
$accessToken = $data['data'];
$userListRequest = new OpenApiUserListRequest;
$list = $client->execute($userListRequest,$accessToken);
var_dump($list);
}
参与贡献
Fork 本仓库 新建 Feat_xxx 分支 提交代码 新建 Pull Request