class Client extends Client

Traits

Properties

protected $api_url from CICommon
protected $curl from CICommon

Methods

__construct(Curl $curl, string $api_url)

CICommon constructor.

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

No description

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

No description

mixed
listOrgs()

获取用户名下组织列表.

void
listBlockedUsers()

No description

from Client
void
userIsBlocked()

No description

from Client
void
blockUser()

No description

from Client
void
UnblockUser()

No description

from Client
getAccessToken()

No description

Details

in CICommon at line 18
__construct(Curl $curl, string $api_url)

CICommon constructor.

Parameters

Curl $curl
string $api_url

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

Parameters

bool $raw
string $username

Return Value

array|mixed

Exceptions

Exception

at line 62
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 105
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

at line 15
getAccessToken()