Client
class Client
Properties
protected | $api_url | ||
protected Curl | $curl |
Methods
__construct(Curl $curl, string $api_url)
No description
array|mixed
getUserInfo(bool $raw = false, string $username = null)
获取当前登录用户或指定用户的基本信息.
mixed
getRepos(int $page = 1, bool $raw = false, string $username = null)
获取当前用户或指定用户名下所有的仓库列表(包括组织中的列表).
mixed
listOrgs()
获取用户名下组织列表.
void
listBlockedUsers()
No description
void
userIsBlocked()
No description
void
blockUser()
No description
void
UnblockUser()
No description
Details
at line 19
__construct(Curl $curl, string $api_url)
at line 32
array|mixed
getUserInfo(bool $raw = false, string $username = null)
获取当前登录用户或指定用户的基本信息.
at line 63
mixed
getRepos(int $page = 1, bool $raw = false, string $username = null)
获取当前用户或指定用户名下所有的仓库列表(包括组织中的列表).
at line 83
mixed
listOrgs()
获取用户名下组织列表.