class Client extends Client

Properties

protected $api_url from Client
protected Curl $curl from Client

Methods

__construct(Curl $curl, string $api_url)

No description

from Client
array|mixed
getUserInfo(bool $raw = false, string $username = null)

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

from Client
mixed
getRepos(int $page = 1, bool $raw = false, string $username = null)

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

from Client
mixed
listOrgs()

获取用户名下组织列表.

from Client
void
listBlockedUsers()

No description

from Client
void
userIsBlocked()

No description

from Client
void
blockUser()

No description

from Client
void
UnblockUser()

No description

from Client

Details

in Client at line 19
__construct(Curl $curl, string $api_url)

Parameters

Curl $curl
string $api_url

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

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

Parameters

bool $raw
string $username

Return Value

array|mixed

Exceptions

Exception

in Client 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

in Client at line 83
mixed listOrgs()

获取用户名下组织列表.

Return Value

mixed

Exceptions

Exception

in Client at line 98
void listBlockedUsers()

Return Value

void

in Client at line 102
void userIsBlocked()

Return Value

void

in Client at line 106
void blockUser()

Return Value

void

in Client at line 110
void UnblockUser()

Return Value

void