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)

Parameters

Curl $curl
string $api_url

at line 32
array|mixed getUserInfo(bool $raw = false, string $username = null)

获取当前登录用户或指定用户的基本信息.

Parameters

bool $raw
string $username

Return Value

array|mixed

Exceptions

Exception

at line 63
mixed getRepos(int $page = 1, bool $raw = false, string $username = null)

获取当前用户或指定用户名下所有的仓库列表(包括组织中的列表).

Parameters

int $page
bool $raw
string $username

Return Value

mixed

Exceptions

Exception

at line 83
mixed listOrgs()

获取用户名下组织列表.

Return Value

mixed

Exceptions

Exception

at line 98
void listBlockedUsers()

Return Value

void

at line 102
void userIsBlocked()

Return Value

void

at line 106
void blockUser()

Return Value

void

at line 110
void UnblockUser()

Return Value

void