2 Star 0 Fork 1

法大大/fasc-openapi-php-sdk

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Fdd.Service.Client.php 791 Bytes
Copy Edit Raw Blame History
fei.wang authored 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

Search