YfyShareLinkClient
class YfyShareLinkClient extends YfyBaseApiClient
Class YfyShareLinkClient
Constants
API_PREFIX |
|
SHARE_LINK_INFO_URI |
|
SHARE_CREATE_URI |
|
SHARE_UPDATE_URI |
|
SHARE_REVOKE_URI |
|
Properties
protected YfyContext | $yfyContext | from YfyBaseApiClient | |
protected YfyHttpClient | $httpClient | from YfyBaseApiClient | |
protected OAuthClient | $oauthClient | from YfyBaseApiClient |
Methods
__construct(YfyContext $yfyContext, YfyHttpClient $httpClient, OAuthClient $oauthClient)
YfyUserClient constructor.
mixed
getInfo(string $uniqueName)
获取分享链接信息
mixed
create(string $type, int $id, string $access, string $dueTime, bool $disableDownload = false, bool $passwordProtected = false, string $password = null)
创建分享链接
mixed
update(string $uniqueName, string $access, string $dueTime, bool $disableDownload = false, bool $passwordProtected = false, string $password = null)
更新分享链接
mixed
revoke(string $uniqueName)
删除分享链接
Details
at line 33
__construct(YfyContext $yfyContext, YfyHttpClient $httpClient, OAuthClient $oauthClient)
YfyUserClient constructor.
in YfyBaseApiClient at line 61
protected YfyRawResponse
execute(YfyRequest $yfyRequest)
执行请求, 调用realExecute, 封装了重试的逻辑
in YfyBaseApiClient at line 93
protected YfyRawResponse
realExecute(YfyRequest $yfyRequest)
真正执行请求的函数 会进行所有错误处理
at line 45
mixed
getInfo(string $uniqueName)
获取分享链接信息
at line 73
mixed
create(string $type, int $id, string $access, string $dueTime, bool $disableDownload = false, bool $passwordProtected = false, string $password = null)
创建分享链接
at line 111
mixed
update(string $uniqueName, string $access, string $dueTime, bool $disableDownload = false, bool $passwordProtected = false, string $password = null)
更新分享链接
at line 138
mixed
revoke(string $uniqueName)
删除分享链接