Ai
2 Star 0 Fork 1

法大大/fasc-openapi-php-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Fdd.Service.Client.php 791 Bytes
一键复制 编辑 原始数据 按行查看 历史
fei.wang 提交于 2022-05-19 18:57 +08:00 . 更新readme文件
<?php
require_once 'Fdd.Sdk.IClient.php';
require_once '../constants/OpenApiUrlConstants.php';
class ServiceClient
{
private $client;
public function __construct(IClient $client)
{
$this->client = $client;
}
# 获取服务访问凭证
function getAccessToken()
{
return $this->client->request(null, null, OpenApiUrlConstants::SERVICE_GET_ACCESS_TOKEN);
}
# 获取应用级资源访问凭证
function getAppAccessTicket()
{
return $this->client->request(null, null, OpenApiUrlConstants::SERVICE_GET_APP_ACCESS_TICKET);
}
# 获取用户级资源访问凭证
function getUserAccessTicket()
{
return $this->client->request(null, null, OpenApiUrlConstants::SERVICE_GET_USER_ACCESS_TICKET);
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/fadada-cloud/fasc-openapi-php-sdk.git
git@gitee.com:fadada-cloud/fasc-openapi-php-sdk.git
fadada-cloud
fasc-openapi-php-sdk
fasc-openapi-php-sdk
v5.1

搜索帮助