class YfyClient

Interface YfyClientInterface

Constants

VERSION

Methods

__construct(array $options = [])

YfyClient constructor.

getAccessToken()

获取access token

setAccessToken(string $accessToken)

设置access token

getRefreshToken()

获取refresh token

setRefreshToken(string $refreshToken)

设置refresh token

getPersistentDataHandler()

获取持久化数据处理器

setPersistentDataHandler(PersistentDataHandler $persistentDataHandler)

设置持久化数据处理器

getRandomStringGenerator()

获取随机字符串生成器

setRandomStringGenerator(RandomStringGenerator $randomStringGenerator)

设置随机字符串生成器

oauth()

返回授权操作

users()

返回用户操作

files()

返回文件操作

folders()

返回文件夹操作

items()

返回文件/文件夹通用操作

shareLinks()

返回分享链接操作

trash()

返回回收站操作

collabs()

返回协作操作

comments()

返回评论操作

Details

at line 91
__construct(array $options = [])

YfyClient constructor.

Parameters

array $options 可传入的选项

See also

YfyClientOptions

at line 115
getAccessToken()

获取access token

at line 124
setAccessToken(string $accessToken)

设置access token

Parameters

string $accessToken

at line 131
getRefreshToken()

获取refresh token

at line 140
setRefreshToken(string $refreshToken)

设置refresh token

Parameters

string $refreshToken

at line 150
PersistentDataHandler getPersistentDataHandler()

获取持久化数据处理器

Return Value

PersistentDataHandler

at line 160
setPersistentDataHandler(PersistentDataHandler $persistentDataHandler)

设置持久化数据处理器

Parameters

PersistentDataHandler $persistentDataHandler PersistentDataHandler的实例

at line 171
RandomStringGenerator getRandomStringGenerator()

获取随机字符串生成器

Return Value

RandomStringGenerator

at line 181
setRandomStringGenerator(RandomStringGenerator $randomStringGenerator)

设置随机字符串生成器

Parameters

RandomStringGenerator $randomStringGenerator RandomStringGenerator的实例

at line 189
oauth()

返回授权操作

at line 201
YfyUserClient users()

返回用户操作

Return Value

YfyUserClient

at line 213
YfyFileClient files()

返回文件操作

Return Value

YfyFileClient

at line 225
YfyFolderClient folders()

返回文件夹操作

Return Value

YfyFolderClient

at line 237
YfyItemClient items()

返回文件/文件夹通用操作

Return Value

YfyItemClient

返回分享链接操作

Return Value

YfyShareLinkClient

at line 261
YfyTrashClient trash()

返回回收站操作

Return Value

YfyTrashClient

at line 273
YfyCollabClient collabs()

返回协作操作

Return Value

YfyCollabClient

at line 285
YfyCommentClient comments()

返回评论操作

Return Value

YfyCommentClient