class Client

Traits

Properties

protected $curl from CICommon
protected $api_url from CICommon

Methods

__construct(Curl $curl, string $api_url)

CICommon constructor.

from CICommon
mixed
getBasicInfo(string $org_name)

获取组织的基本信息.

mixed
edit(string $org_name)

Edit an organization.

mixed
listRepo(string $org_name, int $page = 1, string $type = null, int $per_page = null, string $sort = null)

获取组织的仓库列表.

void
listBlockedUsers(string $org_name)

List blocked users.

bool
isBlockedUser(string $org_name, string $username)

Check whether a user is blocked from an organization.

mixed
blockUser(string $org_name, string $username)

Block a user.

mixed
unblockUser(string $org_name, string $username)

Unblock a user.

bool
exists(string $org_name)

No description

Details

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

CICommon constructor.

Parameters

Curl $curl
string $api_url

at line 21
mixed getBasicInfo(string $org_name)

获取组织的基本信息.

Parameters

string $org_name

Return Value

mixed

Exceptions

Exception

at line 35
mixed edit(string $org_name)

Edit an organization.

Parameters

string $org_name

Return Value

mixed

Exceptions

Exception

at line 58
mixed listRepo(string $org_name, int $page = 1, string $type = null, int $per_page = null, string $sort = null)

获取组织的仓库列表.

Parameters

string $org_name
int $page
string $type
int $per_page
string $sort

Return Value

mixed

Exceptions

Exception

at line 68
void listBlockedUsers(string $org_name)

List blocked users.

Parameters

string $org_name

Return Value

void

at line 80
bool isBlockedUser(string $org_name, string $username)

Check whether a user is blocked from an organization.

Parameters

string $org_name
string $username

Return Value

bool

Exceptions

Exception

at line 108
mixed blockUser(string $org_name, string $username)

Block a user.

204

Parameters

string $org_name
string $username

Return Value

mixed

Exceptions

Exception

at line 124
mixed unblockUser(string $org_name, string $username)

Unblock a user.

204

Parameters

string $org_name
string $username

Return Value

mixed

Exceptions

Exception

at line 136
bool exists(string $org_name)

Parameters

string $org_name

Return Value

bool

Exceptions

Exception