Gitee SDK for PHP (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
PHP 5.5 and later
composer require gitee-php/gitee-sdk
Download the files and include autoload.php
:
require_once '/path/to/vendor/autoload.php';
Please follow the installation procedure and then run the following:
<?php
require_once __DIR__ . '/vendor/autoload.php';
$apiInstance = new Gitee\Api\ActivityApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$owner = "owner_example"; // string | 仓库所属空间地址(企业、组织或个人的地址path)
$repo = "repo_example"; // string | 仓库路径(path)
$accessToken = "accessToken_example"; // string | 用户授权码
try {
$apiInstance->deleteV5UserStarredOwnerRepo($owner, $repo, $accessToken);
} catch (Exception $e) {
echo 'Exception when calling ActivityApi->deleteV5UserStarredOwnerRepo: ', $e->getMessage(), PHP_EOL;
}
?>
Warning
由于 Gitee 官方提供的 swagger.json
存在错误,所以本 SDK
中存在部分 API
的返回值 Model
未能正确返回内容,如果发现可以提交 Issue 或提交 Pull Request
。
同时为了减小影响,可以使用 SDK
提供的 ResponseHandler
来获取到原始响应。
<?php
require_once __DIR__ . '/vendor/autoload.php';
$response = new Gitee\ResponseHandler();
$client = $response->createClientWithMiddleware();
$apiInstance = new Gitee\Api\UsersApi($client);
$accessToken = "accessToken_example"; // string | 用户授权码
try {
$result = $apiInstance->getV5User($accessToken);
print_r($result);
print_r($response->toArray());
} catch (Exception $e) {
echo 'Exception when calling UsersApi->getV5User: ', $e->getMessage(), PHP_EOL;
}
?>
All URIs are relative to https://gitee.com/api
Class | Method | HTTP request | Description |
---|---|---|---|
ActivityApi | deleteV5UserStarredOwnerRepo | DELETE /v5/user/starred/{owner}/{repo} | 取消 star 一个仓库 |
ActivityApi | deleteV5UserSubscriptionsOwnerRepo | DELETE /v5/user/subscriptions/{owner}/{repo} | 取消 watch 一个仓库 |
ActivityApi | getV5NetworksOwnerRepoEvents | GET /v5/networks/{owner}/{repo}/events | 列出仓库的所有公开动态 |
ActivityApi | getV5NotificationsCount | GET /v5/notifications/count | 获取授权用户的通知数 |
ActivityApi | getV5NotificationsMessages | GET /v5/notifications/messages | 列出授权用户的所有私信 |
ActivityApi | getV5NotificationsMessagesId | GET /v5/notifications/messages/{id} | 获取一条私信 |
ActivityApi | getV5NotificationsThreads | GET /v5/notifications/threads | 列出授权用户的所有通知 |
ActivityApi | getV5NotificationsThreadsId | GET /v5/notifications/threads/{id} | 获取一条通知 |
ActivityApi | getV5OrgsOrgEvents | GET /v5/orgs/{org}/events | 列出组织的公开动态 |
ActivityApi | getV5ReposOwnerRepoEvents | GET /v5/repos/{owner}/{repo}/events | 列出仓库的所有动态 |
ActivityApi | getV5ReposOwnerRepoNotifications | GET /v5/repos/{owner}/{repo}/notifications | 列出一个仓库里的通知 |
ActivityApi | getV5ReposOwnerRepoStargazers | GET /v5/repos/{owner}/{repo}/stargazers | 列出 star 了仓库的用户 |
ActivityApi | getV5ReposOwnerRepoSubscribers | GET /v5/repos/{owner}/{repo}/subscribers | 列出 watch 了仓库的用户 |
ActivityApi | getV5UserStarred | GET /v5/user/starred | 列出授权用户 star 了的仓库 |
ActivityApi | getV5UserStarredOwnerRepo | GET /v5/user/starred/{owner}/{repo} | 检查授权用户是否 star 了一个仓库 |
ActivityApi | getV5UserSubscriptions | GET /v5/user/subscriptions | 列出授权用户 watch 了的仓库 |
ActivityApi | getV5UserSubscriptionsOwnerRepo | GET /v5/user/subscriptions/{owner}/{repo} | 检查授权用户是否 watch 了一个仓库 |
ActivityApi | getV5UsersUsernameEvents | GET /v5/users/{username}/events | 列出用户的动态 |
ActivityApi | getV5UsersUsernameEventsOrgsOrg | GET /v5/users/{username}/events/orgs/{org} | 列出用户所属组织的动态 |
ActivityApi | getV5UsersUsernameEventsPublic | GET /v5/users/{username}/events/public | 列出用户的公开动态 |
ActivityApi | getV5UsersUsernameReceivedEvents | GET /v5/users/{username}/received_events | 列出一个用户收到的动态 |
ActivityApi | getV5UsersUsernameReceivedEventsPublic | GET /v5/users/{username}/received_events/public | 列出一个用户收到的公开动态 |
ActivityApi | getV5UsersUsernameStarred | GET /v5/users/{username}/starred | 列出用户 star 了的仓库 |
ActivityApi | getV5UsersUsernameSubscriptions | GET /v5/users/{username}/subscriptions | 列出用户 watch 了的仓库 |
ActivityApi | patchV5NotificationsMessagesId | PATCH /v5/notifications/messages/{id} | 标记一条私信为已读 |
ActivityApi | patchV5NotificationsThreadsId | PATCH /v5/notifications/threads/{id} | 标记一条通知为已读 |
ActivityApi | postV5NotificationsMessages | POST /v5/notifications/messages | 发送私信给指定用户 |
ActivityApi | putV5NotificationsMessages | PUT /v5/notifications/messages | 标记所有私信为已读 |
ActivityApi | putV5NotificationsThreads | PUT /v5/notifications/threads | 标记所有通知为已读 |
ActivityApi | putV5ReposOwnerRepoNotifications | PUT /v5/repos/{owner}/{repo}/notifications | 标记一个仓库里的通知为已读 |
ActivityApi | putV5UserStarredOwnerRepo | PUT /v5/user/starred/{owner}/{repo} | star 一个仓库 |
ActivityApi | putV5UserSubscriptionsOwnerRepo | PUT /v5/user/subscriptions/{owner}/{repo} | watch 一个仓库 |
ChecksApi | getV5ReposOwnerRepoCheckRunsCheckRunId | GET /v5/repos/{owner}/{repo}/check-runs/{check_run_id} | 获取检查项详情 |
ChecksApi | getV5ReposOwnerRepoCheckRunsCheckRunIdAnnotations | GET /v5/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations | 获取检查项代码注释 |
ChecksApi | getV5ReposOwnerRepoCommitsRefCheckRuns | GET /v5/repos/{owner}/{repo}/commits/{ref}/check-runs | 获取某个提交的检查项 |
ChecksApi | patchV5ReposOwnerRepoCheckRunsCheckRunId | PATCH /v5/repos/{owner}/{repo}/check-runs/{check_run_id} | 更新检查项 |
ChecksApi | postV5ReposOwnerRepoCheckRuns | POST /v5/repos/{owner}/{repo}/check-runs | 创建检查项 |
EmailsApi | getV5Emails | GET /v5/emails | 获取授权用户的全部邮箱 |
EnterprisesApi | deleteV5EnterprisesEnterpriseMembersUsername | DELETE /v5/enterprises/{enterprise}/members/{username} | 移除企业成员 |
EnterprisesApi | deleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId | DELETE /v5/enterprises/{enterprise}/week_reports/{report_id}/comments/{id} | 删除周报某个评论 |
EnterprisesApi | getV5EnterpriseEnterprisePullRequests | GET /v5/enterprise/{enterprise}/pull_requests | 企业 Pull Request 列表 |
EnterprisesApi | getV5EnterprisesEnterprise | GET /v5/enterprises/{enterprise} | 获取一个企业 |
EnterprisesApi | getV5EnterprisesEnterpriseMembers | GET /v5/enterprises/{enterprise}/members | 列出企业的所有成员 |
EnterprisesApi | getV5EnterprisesEnterpriseMembersSearch | GET /v5/enterprises/{enterprise}/members/search | 获取企业成员信息(通过用户名/邮箱) |
EnterprisesApi | getV5EnterprisesEnterpriseMembersUsername | GET /v5/enterprises/{enterprise}/members/{username} | 获取企业的一个成员 |
EnterprisesApi | getV5EnterprisesEnterpriseUsersUsernameWeekReports | GET /v5/enterprises/{enterprise}/users/{username}/week_reports | 个人周报列表 |
EnterprisesApi | getV5EnterprisesEnterpriseWeekReports | GET /v5/enterprises/{enterprise}/week_reports | 企业成员周报列表 |
EnterprisesApi | getV5EnterprisesEnterpriseWeekReportsId | GET /v5/enterprises/{enterprise}/week_reports/{id} | 周报详情 |
EnterprisesApi | getV5EnterprisesEnterpriseWeekReportsIdComments | GET /v5/enterprises/{enterprise}/week_reports/{id}/comments | 某个周报评论列表 |
EnterprisesApi | getV5UserEnterprises | GET /v5/user/enterprises | 列出授权用户所属的企业 |
EnterprisesApi | patchV5EnterprisesEnterpriseWeekReportId | PATCH /v5/enterprises/{enterprise}/week_report/{id} | 编辑周报 |
EnterprisesApi | postV5EnterprisesEnterpriseMembers | POST /v5/enterprises/{enterprise}/members | 添加或邀请企业成员 |
EnterprisesApi | postV5EnterprisesEnterpriseWeekReport | POST /v5/enterprises/{enterprise}/week_report | 新建周报 |
EnterprisesApi | postV5EnterprisesEnterpriseWeekReportsIdComment | POST /v5/enterprises/{enterprise}/week_reports/{id}/comment | 评论周报 |
EnterprisesApi | putV5EnterprisesEnterpriseMembersUsername | PUT /v5/enterprises/{enterprise}/members/{username} | 修改企业成员权限或备注 |
GistsApi | deleteV5GistsGistIdCommentsId | DELETE /v5/gists/{gist_id}/comments/{id} | 删除代码片段的评论 |
GistsApi | deleteV5GistsId | DELETE /v5/gists/{id} | 删除指定代码片段 |
GistsApi | deleteV5GistsIdStar | DELETE /v5/gists/{id}/star | 取消Star代码片段 |
GistsApi | getV5Gists | GET /v5/gists | 获取代码片段 |
GistsApi | getV5GistsGistIdComments | GET /v5/gists/{gist_id}/comments | 获取代码片段的评论 |
GistsApi | getV5GistsGistIdCommentsId | GET /v5/gists/{gist_id}/comments/{id} | 获取单条代码片段的评论 |
GistsApi | getV5GistsId | GET /v5/gists/{id} | 获取单条代码片段 |
GistsApi | getV5GistsIdCommits | GET /v5/gists/{id}/commits | 获取代码片段的commit |
GistsApi | getV5GistsIdForks | GET /v5/gists/{id}/forks | 获取 Fork 了指定代码片段的列表 |
GistsApi | getV5GistsIdStar | GET /v5/gists/{id}/star | 判断代码片段是否已Star |
GistsApi | getV5GistsStarred | GET /v5/gists/starred | 获取用户Star的代码片段 |
GistsApi | patchV5GistsGistIdCommentsId | PATCH /v5/gists/{gist_id}/comments/{id} | 修改代码片段的评论 |
GistsApi | patchV5GistsId | PATCH /v5/gists/{id} | 修改代码片段 |
GistsApi | postV5Gists | POST /v5/gists | 创建代码片段 |
GistsApi | postV5GistsGistIdComments | POST /v5/gists/{gist_id}/comments | 增加代码片段的评论 |
GistsApi | postV5GistsIdForks | POST /v5/gists/{id}/forks | Fork代码片段 |
GistsApi | putV5GistsIdStar | PUT /v5/gists/{id}/star | Star代码片段 |
GitDataApi | getV5ReposOwnerRepoGitBlobsSha | GET /v5/repos/{owner}/{repo}/git/blobs/{sha} | 获取文件Blob |
GitDataApi | getV5ReposOwnerRepoGitGiteeMetrics | GET /v5/repos/{owner}/{repo}/git/gitee_metrics | 获取 Gitee 指数 |
GitDataApi | getV5ReposOwnerRepoGitTreesSha | GET /v5/repos/{owner}/{repo}/git/trees/{sha} | 获取目录Tree |
IssuesApi | deleteV5ReposOwnerRepoIssuesCommentsId | DELETE /v5/repos/{owner}/{repo}/issues/comments/{id} | 删除Issue某条评论 |
IssuesApi | getV5EnterprisesEnterpriseIssues | GET /v5/enterprises/{enterprise}/issues | 获取某个企业的所有Issues |
IssuesApi | getV5EnterprisesEnterpriseIssuesNumber | GET /v5/enterprises/{enterprise}/issues/{number} | 获取企业的某个Issue |
IssuesApi | getV5EnterprisesEnterpriseIssuesNumberComments | GET /v5/enterprises/{enterprise}/issues/{number}/comments | 获取企业某个Issue所有评论 |
IssuesApi | getV5EnterprisesEnterpriseIssuesNumberLabels | GET /v5/enterprises/{enterprise}/issues/{number}/labels | 获取企业某个Issue所有标签 |
IssuesApi | getV5EnterprisesEnterpriseIssuesNumberPullRequests | GET /v5/enterprises/{enterprise}/issues/{number}/pull_requests | 获取企业 issue 关联的 Pull Requests |
IssuesApi | getV5Issues | GET /v5/issues | 获取当前授权用户的所有Issues |
IssuesApi | getV5OrgsOrgIssues | GET /v5/orgs/{org}/issues | 获取当前用户某个组织的Issues |
IssuesApi | getV5ReposOwnerIssuesNumberOperateLogs | GET /v5/repos/{owner}/issues/{number}/operate_logs | 获取某个Issue下的操作日志 |
IssuesApi | getV5ReposOwnerIssuesNumberPullRequests | GET /v5/repos/{owner}/issues/{number}/pull_requests | 获取 issue 关联的 Pull Requests |
IssuesApi | getV5ReposOwnerRepoIssues | GET /v5/repos/{owner}/{repo}/issues | 仓库的所有Issues |
IssuesApi | getV5ReposOwnerRepoIssuesComments | GET /v5/repos/{owner}/{repo}/issues/comments | 获取仓库所有Issue的评论 |
IssuesApi | getV5ReposOwnerRepoIssuesCommentsId | GET /v5/repos/{owner}/{repo}/issues/comments/{id} | 获取仓库Issue某条评论 |
IssuesApi | getV5ReposOwnerRepoIssuesNumber | GET /v5/repos/{owner}/{repo}/issues/{number} | 仓库的某个Issue |
IssuesApi | getV5ReposOwnerRepoIssuesNumberComments | GET /v5/repos/{owner}/{repo}/issues/{number}/comments | 获取仓库某个Issue所有的评论 |
IssuesApi | getV5UserIssues | GET /v5/user/issues | 获取授权用户的所有Issues |
IssuesApi | patchV5EnterprisesEnterpriseIssuesNumber | PATCH /v5/enterprises/{enterprise}/issues/{number} | 更新企业的某个Issue |
IssuesApi | patchV5ReposOwnerIssuesNumber | PATCH /v5/repos/{owner}/issues/{number} | 更新Issue |
IssuesApi | patchV5ReposOwnerRepoIssuesCommentsId | PATCH /v5/repos/{owner}/{repo}/issues/comments/{id} | 更新Issue某条评论 |
IssuesApi | postV5ReposOwnerIssues | POST /v5/repos/{owner}/issues | 创建Issue |
IssuesApi | postV5ReposOwnerRepoIssuesNumberComments | POST /v5/repos/{owner}/{repo}/issues/{number}/comments | 创建某个Issue评论 |
LabelsApi | deleteV5ReposOwnerRepoIssuesNumberLabels | DELETE /v5/repos/{owner}/{repo}/issues/{number}/labels | 删除Issue所有标签 |
LabelsApi | deleteV5ReposOwnerRepoIssuesNumberLabelsName | DELETE /v5/repos/{owner}/{repo}/issues/{number}/labels/{name} | 删除Issue标签 |
LabelsApi | deleteV5ReposOwnerRepoLabelsName | DELETE /v5/repos/{owner}/{repo}/labels/{name} | 删除一个仓库任务标签 |
LabelsApi | deleteV5ReposOwnerRepoProjectLabels | DELETE /v5/repos/{owner}/{repo}/project_labels | 删除仓库标签 |
LabelsApi | getV5EnterprisesEnterpriseLabels | GET /v5/enterprises/{enterprise}/labels | 获取企业所有标签 |
LabelsApi | getV5EnterprisesEnterpriseLabelsName | GET /v5/enterprises/{enterprise}/labels/{name} | 获取企业某个标签 |
LabelsApi | getV5ReposOwnerRepoIssuesNumberLabels | GET /v5/repos/{owner}/{repo}/issues/{number}/labels | 获取仓库任务的所有标签 |
LabelsApi | getV5ReposOwnerRepoLabels | GET /v5/repos/{owner}/{repo}/labels | 获取仓库所有任务标签 |
LabelsApi | getV5ReposOwnerRepoLabelsName | GET /v5/repos/{owner}/{repo}/labels/{name} | 根据标签名称获取单个标签 |
LabelsApi | getV5ReposOwnerRepoProjectLabels | GET /v5/repos/{owner}/{repo}/project_labels | 获取仓库所有标签 |
LabelsApi | patchV5ReposOwnerRepoLabelsOriginalName | PATCH /v5/repos/{owner}/{repo}/labels/{original_name} | 更新一个仓库任务标签 |
LabelsApi | postV5ReposOwnerRepoIssuesNumberLabels | POST /v5/repos/{owner}/{repo}/issues/{number}/labels | 创建Issue标签 |
LabelsApi | postV5ReposOwnerRepoLabels | POST /v5/repos/{owner}/{repo}/labels | 创建仓库任务标签 |
LabelsApi | postV5ReposOwnerRepoProjectLabels | POST /v5/repos/{owner}/{repo}/project_labels | 添加仓库标签 |
LabelsApi | putV5ReposOwnerRepoIssuesNumberLabels | PUT /v5/repos/{owner}/{repo}/issues/{number}/labels | 替换Issue所有标签 |
LabelsApi | putV5ReposOwnerRepoProjectLabels | PUT /v5/repos/{owner}/{repo}/project_labels | 替换所有仓库标签 |
MilestonesApi | deleteV5ReposOwnerRepoMilestonesNumber | DELETE /v5/repos/{owner}/{repo}/milestones/{number} | 删除仓库单个里程碑 |
MilestonesApi | getV5ReposOwnerRepoMilestones | GET /v5/repos/{owner}/{repo}/milestones | 获取仓库所有里程碑 |
MilestonesApi | getV5ReposOwnerRepoMilestonesNumber | GET /v5/repos/{owner}/{repo}/milestones/{number} | 获取仓库单个里程碑 |
MilestonesApi | patchV5ReposOwnerRepoMilestonesNumber | PATCH /v5/repos/{owner}/{repo}/milestones/{number} | 更新仓库里程碑 |
MilestonesApi | postV5ReposOwnerRepoMilestones | POST /v5/repos/{owner}/{repo}/milestones | 创建仓库里程碑 |
MiscellaneousApi | getV5Emojis | GET /v5/emojis | 列出可使用的 Emoji |
MiscellaneousApi | getV5GitignoreTemplates | GET /v5/gitignore/templates | 列出可使用的 .gitignore 模板 |
MiscellaneousApi | getV5GitignoreTemplatesName | GET /v5/gitignore/templates/{name} | 获取一个 .gitignore 模板 |
MiscellaneousApi | getV5GitignoreTemplatesNameRaw | GET /v5/gitignore/templates/{name}/raw | 获取一个 .gitignore 模板原始文件 |
MiscellaneousApi | getV5Licenses | GET /v5/licenses | 列出可使用的开源许可协议 |
MiscellaneousApi | getV5LicensesLicense | GET /v5/licenses/{license} | 获取一个开源许可协议 |
MiscellaneousApi | getV5LicensesLicenseRaw | GET /v5/licenses/{license}/raw | 获取一个开源许可协议原始文件 |
MiscellaneousApi | getV5ReposOwnerRepoLicense | GET /v5/repos/{owner}/{repo}/license | 获取一个仓库使用的开源许可协议 |
MiscellaneousApi | postV5Markdown | POST /v5/markdown | 渲染 Markdown 文本 |
OrganizationsApi | deleteV5OrgsOrgMembershipsUsername | DELETE /v5/orgs/{org}/memberships/{username} | 移除授权用户所管理组织中的成员 |
OrganizationsApi | deleteV5UserMembershipsOrgsOrg | DELETE /v5/user/memberships/orgs/{org} | 退出一个组织 |
OrganizationsApi | getV5OrgsOrg | GET /v5/orgs/{org} | 获取一个组织 |
OrganizationsApi | getV5OrgsOrgFollowers | GET /v5/orgs/{org}/followers | 列出指定组织的所有关注者 |
OrganizationsApi | getV5OrgsOrgMembers | GET /v5/orgs/{org}/members | 列出一个组织的所有成员 |
OrganizationsApi | getV5OrgsOrgMembershipsUsername | GET /v5/orgs/{org}/memberships/{username} | 获取授权用户所属组织的一个成员 |
OrganizationsApi | getV5UserMembershipsOrgs | GET /v5/user/memberships/orgs | 列出授权用户在所属组织的成员资料 |
OrganizationsApi | getV5UserMembershipsOrgsOrg | GET /v5/user/memberships/orgs/{org} | 获取授权用户在一个组织的成员资料 |
OrganizationsApi | getV5UserOrgs | GET /v5/user/orgs | 列出授权用户所属的组织 |
OrganizationsApi | getV5UsersUsernameOrgs | GET /v5/users/{username}/orgs | 列出用户所属的组织 |
OrganizationsApi | patchV5OrgsOrg | PATCH /v5/orgs/{org} | 更新授权用户所管理的组织资料 |
OrganizationsApi | patchV5UserMembershipsOrgsOrg | PATCH /v5/user/memberships/orgs/{org} | 更新授权用户在一个组织的成员资料 |
OrganizationsApi | postV5UsersOrganization | POST /v5/users/organization | 创建组织 |
OrganizationsApi | putV5OrgsOrgMembershipsUsername | PUT /v5/orgs/{org}/memberships/{username} | 增加或更新授权用户所管理组织的成员 |
PullRequestsApi | deleteV5ReposOwnerRepoPullsCommentsId | DELETE /v5/repos/{owner}/{repo}/pulls/comments/{id} | 删除评论 |
PullRequestsApi | deleteV5ReposOwnerRepoPullsNumberAssignees | DELETE /v5/repos/{owner}/{repo}/pulls/{number}/assignees | 取消用户审查 Pull Request |
PullRequestsApi | deleteV5ReposOwnerRepoPullsNumberLabelsName | DELETE /v5/repos/{owner}/{repo}/pulls/{number}/labels/{name} | 删除 Pull Request 标签 |
PullRequestsApi | deleteV5ReposOwnerRepoPullsNumberTesters | DELETE /v5/repos/{owner}/{repo}/pulls/{number}/testers | 取消用户测试 Pull Request |
PullRequestsApi | getV5ReposOwnerRepoPulls | GET /v5/repos/{owner}/{repo}/pulls | 获取Pull Request列表 |
PullRequestsApi | getV5ReposOwnerRepoPullsCommentsId | GET /v5/repos/{owner}/{repo}/pulls/comments/{id} | 获取Pull Request的某个评论 |
PullRequestsApi | getV5ReposOwnerRepoPullsNumber | GET /v5/repos/{owner}/{repo}/pulls/{number} | 获取单个Pull Request |
PullRequestsApi | getV5ReposOwnerRepoPullsNumberComments | GET /v5/repos/{owner}/{repo}/pulls/{number}/comments | 获取某个Pull Request的所有评论 |
PullRequestsApi | getV5ReposOwnerRepoPullsNumberCommits | GET /v5/repos/{owner}/{repo}/pulls/{number}/commits | 获取某Pull Request的所有Commit信息。最多显示250条Commit |
PullRequestsApi | getV5ReposOwnerRepoPullsNumberFiles | GET /v5/repos/{owner}/{repo}/pulls/{number}/files | Pull Request Commit文件列表。最多显示300条diff |
PullRequestsApi | getV5ReposOwnerRepoPullsNumberIssues | GET /v5/repos/{owner}/{repo}/pulls/{number}/issues | 获取 Pull Request 关联的 issues |
PullRequestsApi | getV5ReposOwnerRepoPullsNumberLabels | GET /v5/repos/{owner}/{repo}/pulls/{number}/labels | 获取某个 Pull Request 的所有标签 |
PullRequestsApi | getV5ReposOwnerRepoPullsNumberMerge | GET /v5/repos/{owner}/{repo}/pulls/{number}/merge | 判断Pull Request是否已经合并 |
PullRequestsApi | getV5ReposOwnerRepoPullsNumberOperateLogs | GET /v5/repos/{owner}/{repo}/pulls/{number}/operate_logs | 获取某个Pull Request的操作日志 |
PullRequestsApi | patchV5ReposOwnerRepoPullsCommentsId | PATCH /v5/repos/{owner}/{repo}/pulls/comments/{id} | 编辑评论 |
PullRequestsApi | patchV5ReposOwnerRepoPullsNumber | PATCH /v5/repos/{owner}/{repo}/pulls/{number} | 更新Pull Request信息 |
PullRequestsApi | patchV5ReposOwnerRepoPullsNumberAssignees | PATCH /v5/repos/{owner}/{repo}/pulls/{number}/assignees | 重置 Pull Request 审查 的状态 |
PullRequestsApi | patchV5ReposOwnerRepoPullsNumberTesters | PATCH /v5/repos/{owner}/{repo}/pulls/{number}/testers | 重置 Pull Request 测试 的状态 |
PullRequestsApi | postV5ReposOwnerRepoPulls | POST /v5/repos/{owner}/{repo}/pulls | 创建Pull Request |
PullRequestsApi | postV5ReposOwnerRepoPullsNumberAssignees | POST /v5/repos/{owner}/{repo}/pulls/{number}/assignees | 指派用户审查 Pull Request |
PullRequestsApi | postV5ReposOwnerRepoPullsNumberComments | POST /v5/repos/{owner}/{repo}/pulls/{number}/comments | 提交Pull Request评论 |
PullRequestsApi | postV5ReposOwnerRepoPullsNumberLabels | POST /v5/repos/{owner}/{repo}/pulls/{number}/labels | 创建 Pull Request 标签 |
PullRequestsApi | postV5ReposOwnerRepoPullsNumberReview | POST /v5/repos/{owner}/{repo}/pulls/{number}/review | 处理 Pull Request 审查 |
PullRequestsApi | postV5ReposOwnerRepoPullsNumberTest | POST /v5/repos/{owner}/{repo}/pulls/{number}/test | 处理 Pull Request 测试 |
PullRequestsApi | postV5ReposOwnerRepoPullsNumberTesters | POST /v5/repos/{owner}/{repo}/pulls/{number}/testers | 指派用户测试 Pull Request |
PullRequestsApi | putV5ReposOwnerRepoPullsNumberLabels | PUT /v5/repos/{owner}/{repo}/pulls/{number}/labels | 替换 Pull Request 所有标签 |
PullRequestsApi | putV5ReposOwnerRepoPullsNumberMerge | PUT /v5/repos/{owner}/{repo}/pulls/{number}/merge | 合并Pull Request |
RepositoriesApi | deleteV5ReposOwnerRepo | DELETE /v5/repos/{owner}/{repo} | 删除一个仓库 |
RepositoriesApi | deleteV5ReposOwnerRepoBaiduStatisticKey | DELETE /v5/repos/{owner}/{repo}/baidu_statistic_key | 删除仓库的百度统计 key |
RepositoriesApi | deleteV5ReposOwnerRepoBranchesBranchProtection | DELETE /v5/repos/{owner}/{repo}/branches/{branch}/protection | 取消保护分支的设置 |
RepositoriesApi | deleteV5ReposOwnerRepoBranchesWildcardSetting | DELETE /v5/repos/{owner}/{repo}/branches/{wildcard}/setting | 删除保护分支规则 |
RepositoriesApi | deleteV5ReposOwnerRepoCollaboratorsUsername | DELETE /v5/repos/{owner}/{repo}/collaborators/{username} | 移除仓库成员 |
RepositoriesApi | deleteV5ReposOwnerRepoCommentsId | DELETE /v5/repos/{owner}/{repo}/comments/{id} | 删除Commit评论 |
RepositoriesApi | deleteV5ReposOwnerRepoContentsPath | DELETE /v5/repos/{owner}/{repo}/contents/{path} | 删除文件 |
RepositoriesApi | deleteV5ReposOwnerRepoKeysEnableId | DELETE /v5/repos/{owner}/{repo}/keys/enable/{id} | 停用仓库公钥 |
RepositoriesApi | deleteV5ReposOwnerRepoKeysId | DELETE /v5/repos/{owner}/{repo}/keys/{id} | 删除一个仓库公钥 |
RepositoriesApi | deleteV5ReposOwnerRepoReleasesId | DELETE /v5/repos/{owner}/{repo}/releases/{id} | 删除仓库Release |
RepositoriesApi | deleteV5ReposOwnerRepoReleasesReleaseIdAttachFilesAttachFileId | DELETE /v5/repos/{owner}/{repo}/releases/{release_id}/attach_files/{attach_file_id} | 删除仓库下指定 Release 的指定附件 |
RepositoriesApi | getV5EnterprisesEnterpriseRepos | GET /v5/enterprises/{enterprise}/repos | 获取企业的所有仓库 |
RepositoriesApi | getV5OrgsOrgRepos | GET /v5/orgs/{org}/repos | 获取一个组织的仓库 |
RepositoriesApi | getV5ReposOwnerRepo | GET /v5/repos/{owner}/{repo} | 获取用户的某个仓库 |
RepositoriesApi | getV5ReposOwnerRepoBaiduStatisticKey | GET /v5/repos/{owner}/{repo}/baidu_statistic_key | 获取仓库的百度统计 key |
RepositoriesApi | getV5ReposOwnerRepoBlamePath | GET /v5/repos/{owner}/{repo}/blame/{path} | Blame |
RepositoriesApi | getV5ReposOwnerRepoBranches | GET /v5/repos/{owner}/{repo}/branches | 获取所有分支 |
RepositoriesApi | getV5ReposOwnerRepoBranchesBranch | GET /v5/repos/{owner}/{repo}/branches/{branch} | 获取单个分支 |
RepositoriesApi | getV5ReposOwnerRepoCollaborators | GET /v5/repos/{owner}/{repo}/collaborators | 获取仓库的所有成员 |
RepositoriesApi | getV5ReposOwnerRepoCollaboratorsUsername | GET /v5/repos/{owner}/{repo}/collaborators/{username} | 判断用户是否为仓库成员 |
RepositoriesApi | getV5ReposOwnerRepoCollaboratorsUsernamePermission | GET /v5/repos/{owner}/{repo}/collaborators/{username}/permission | 查看仓库成员的权限 |
RepositoriesApi | getV5ReposOwnerRepoComments | GET /v5/repos/{owner}/{repo}/comments | 获取仓库的 Commit 评论 |
RepositoriesApi | getV5ReposOwnerRepoCommentsId | GET /v5/repos/{owner}/{repo}/comments/{id} | 获取仓库的某条Commit评论 |
RepositoriesApi | getV5ReposOwnerRepoCommits | GET /v5/repos/{owner}/{repo}/commits | 仓库的所有提交 |
RepositoriesApi | getV5ReposOwnerRepoCommitsRefComments | GET /v5/repos/{owner}/{repo}/commits/{ref}/comments | 获取单个Commit的评论 |
RepositoriesApi | getV5ReposOwnerRepoCommitsSha | GET /v5/repos/{owner}/{repo}/commits/{sha} | 仓库的某个提交 |
RepositoriesApi | getV5ReposOwnerRepoCompareBaseHead | GET /v5/repos/{owner}/{repo}/compare/{base}...{head} | Commits 对比 |
RepositoriesApi | getV5ReposOwnerRepoContentsPath | GET /v5/repos/{owner}/{repo}/contents(/{path}) | 获取仓库具体路径下的内容 |
RepositoriesApi | getV5ReposOwnerRepoContributors | GET /v5/repos/{owner}/{repo}/contributors | 获取仓库贡献者 |
RepositoriesApi | getV5ReposOwnerRepoForks | GET /v5/repos/{owner}/{repo}/forks | 查看仓库的Forks |
RepositoriesApi | getV5ReposOwnerRepoKeys | GET /v5/repos/{owner}/{repo}/keys | 获取仓库已部署的公钥 |
RepositoriesApi | getV5ReposOwnerRepoKeysAvailable | GET /v5/repos/{owner}/{repo}/keys/available | 获取仓库可部署的公钥 |
RepositoriesApi | getV5ReposOwnerRepoKeysId | GET /v5/repos/{owner}/{repo}/keys/{id} | 获取仓库的单个公钥 |
RepositoriesApi | getV5ReposOwnerRepoPages | GET /v5/repos/{owner}/{repo}/pages | 获取Pages信息 |
RepositoriesApi | getV5ReposOwnerRepoPushConfig | GET /v5/repos/{owner}/{repo}/push_config | 获取仓库推送规则设置 |
RepositoriesApi | getV5ReposOwnerRepoRawPath | GET /v5/repos/{owner}/{repo}/raw/{path} | 获取 raw 文件(100MB 以内) |
RepositoriesApi | getV5ReposOwnerRepoReadme | GET /v5/repos/{owner}/{repo}/readme | 获取仓库README |
RepositoriesApi | getV5ReposOwnerRepoReleases | GET /v5/repos/{owner}/{repo}/releases | 获取仓库的所有Releases |
RepositoriesApi | getV5ReposOwnerRepoReleasesId | GET /v5/repos/{owner}/{repo}/releases/{id} | 获取仓库的单个Releases |
RepositoriesApi | getV5ReposOwnerRepoReleasesLatest | GET /v5/repos/{owner}/{repo}/releases/latest | 获取仓库的最后更新的Release |
RepositoriesApi | getV5ReposOwnerRepoReleasesReleaseIdAttachFiles | GET /v5/repos/{owner}/{repo}/releases/{release_id}/attach_files | 获取仓库下的指定 Release 的所有附件 |
RepositoriesApi | getV5ReposOwnerRepoReleasesReleaseIdAttachFilesAttachFileId | GET /v5/repos/{owner}/{repo}/releases/{release_id}/attach_files/{attach_file_id} | 获取仓库下指定 Release 的单个附件 |
RepositoriesApi | getV5ReposOwnerRepoReleasesReleaseIdAttachFilesAttachFileIdDownload | GET /v5/repos/{owner}/{repo}/releases/{release_id}/attach_files/{attach_file_id}/download | 下载指定 Release 的单个附件 |
RepositoriesApi | getV5ReposOwnerRepoReleasesTagsTag | GET /v5/repos/{owner}/{repo}/releases/tags/{tag} | 根据Tag名称获取仓库的Release |
RepositoriesApi | getV5ReposOwnerRepoTags | GET /v5/repos/{owner}/{repo}/tags | 列出仓库所有的 tags |
RepositoriesApi | getV5ReposOwnerRepoTarball | GET /v5/repos/{owner}/{repo}/tarball | 下载仓库 tar.gz |
RepositoriesApi | getV5ReposOwnerRepoZipball | GET /v5/repos/{owner}/{repo}/zipball | 下载仓库 zip |
RepositoriesApi | getV5UserRepos | GET /v5/user/repos | 列出授权用户的所有仓库 |
RepositoriesApi | getV5UsersUsernameRepos | GET /v5/users/{username}/repos | 获取某个用户的公开仓库 |
RepositoriesApi | patchV5ReposOwnerRepo | PATCH /v5/repos/{owner}/{repo} | 更新仓库设置 |
RepositoriesApi | patchV5ReposOwnerRepoCommentsId | PATCH /v5/repos/{owner}/{repo}/comments/{id} | 更新Commit评论 |
RepositoriesApi | patchV5ReposOwnerRepoReleasesId | PATCH /v5/repos/{owner}/{repo}/releases/{id} | 更新仓库Release |
RepositoriesApi | postV5EnterprisesEnterpriseRepos | POST /v5/enterprises/{enterprise}/repos | 创建企业仓库 |
RepositoriesApi | postV5OrgsOrgRepos | POST /v5/orgs/{org}/repos | 创建组织仓库 |
RepositoriesApi | postV5ReposOwnerRepoBaiduStatisticKey | POST /v5/repos/{owner}/{repo}/baidu_statistic_key | 设置/更新仓库的百度统计 key |
RepositoriesApi | postV5ReposOwnerRepoBranches | POST /v5/repos/{owner}/{repo}/branches | 创建分支 |
RepositoriesApi | postV5ReposOwnerRepoCommits | POST /v5/repos/{owner}/{repo}/commits | 提交多个文件变更 |
RepositoriesApi | postV5ReposOwnerRepoCommitsShaComments | POST /v5/repos/{owner}/{repo}/commits/{sha}/comments | 创建Commit评论 |
RepositoriesApi | postV5ReposOwnerRepoContentsPath | POST /v5/repos/{owner}/{repo}/contents/{path} | 新建文件 |
RepositoriesApi | postV5ReposOwnerRepoForks | POST /v5/repos/{owner}/{repo}/forks | Fork一个仓库 |
RepositoriesApi | postV5ReposOwnerRepoKeys | POST /v5/repos/{owner}/{repo}/keys | 为仓库添加公钥 |
RepositoriesApi | postV5ReposOwnerRepoOpen | POST /v5/repos/{owner}/{repo}/open | 开通Gitee Go |
RepositoriesApi | postV5ReposOwnerRepoPagesBuilds | POST /v5/repos/{owner}/{repo}/pages/builds | 请求建立Pages |
RepositoriesApi | postV5ReposOwnerRepoReleases | POST /v5/repos/{owner}/{repo}/releases | 创建仓库Release |
RepositoriesApi | postV5ReposOwnerRepoReleasesReleaseIdAttachFiles | POST /v5/repos/{owner}/{repo}/releases/{release_id}/attach_files | 上传附件到仓库指定 Release |
RepositoriesApi | postV5ReposOwnerRepoTags | POST /v5/repos/{owner}/{repo}/tags | 创建一个仓库的 Tag |
RepositoriesApi | postV5ReposOwnerRepoTrafficData | POST /v5/repos/{owner}/{repo}/traffic-data | 获取最近30天的七日以内访问量 |
RepositoriesApi | postV5UserRepos | POST /v5/user/repos | 创建一个仓库 |
RepositoriesApi | putV5ReposOwnerRepoBranchesBranchProtection | PUT /v5/repos/{owner}/{repo}/branches/{branch}/protection | 设置分支保护 |
RepositoriesApi | putV5ReposOwnerRepoBranchesSettingNew | PUT /v5/repos/{owner}/{repo}/branches/setting/new | 新建保护分支规则 |
RepositoriesApi | putV5ReposOwnerRepoBranchesWildcardSetting | PUT /v5/repos/{owner}/{repo}/branches/{wildcard}/setting | 更新保护分支规则 |
RepositoriesApi | putV5ReposOwnerRepoClear | PUT /v5/repos/{owner}/{repo}/clear | 清空一个仓库 |
RepositoriesApi | putV5ReposOwnerRepoCollaboratorsUsername | PUT /v5/repos/{owner}/{repo}/collaborators/{username} | 添加仓库成员或更新仓库成员权限 |
RepositoriesApi | putV5ReposOwnerRepoContentsPath | PUT /v5/repos/{owner}/{repo}/contents/{path} | 更新文件 |
RepositoriesApi | putV5ReposOwnerRepoKeysEnableId | PUT /v5/repos/{owner}/{repo}/keys/enable/{id} | 启用仓库公钥 |
RepositoriesApi | putV5ReposOwnerRepoPages | PUT /v5/repos/{owner}/{repo}/pages | 上传设置 Pages SSL 证书和域名 |
RepositoriesApi | putV5ReposOwnerRepoPushConfig | PUT /v5/repos/{owner}/{repo}/push_config | 修改仓库推送规则设置 |
RepositoriesApi | putV5ReposOwnerRepoReviewer | PUT /v5/repos/{owner}/{repo}/reviewer | 修改代码审查设置 |
SearchApi | getV5SearchIssues | GET /v5/search/issues | 搜索 Issues |
SearchApi | getV5SearchRepositories | GET /v5/search/repositories | 搜索仓库 |
SearchApi | getV5SearchUsers | GET /v5/search/users | 搜索用户 |
UsersApi | deleteV5UserFollowingUsername | DELETE /v5/user/following/{username} | 取消关注一个用户 |
UsersApi | deleteV5UserKeysId | DELETE /v5/user/keys/{id} | 删除一个公钥 |
UsersApi | getV5User | GET /v5/user | 获取授权用户的资料 |
UsersApi | getV5UserFollowers | GET /v5/user/followers | 列出授权用户的关注者 |
UsersApi | getV5UserFollowing | GET /v5/user/following | 列出授权用户正关注的用户 |
UsersApi | getV5UserFollowingUsername | GET /v5/user/following/{username} | 检查授权用户是否关注了一个用户 |
UsersApi | getV5UserKeys | GET /v5/user/keys | 列出授权用户的所有公钥 |
UsersApi | getV5UserKeysId | GET /v5/user/keys/{id} | 获取一个公钥 |
UsersApi | getV5UserNamespace | GET /v5/user/namespace | 获取授权用户的一个 Namespace |
UsersApi | getV5UserNamespaces | GET /v5/user/namespaces | 列出授权用户所有的 Namespace |
UsersApi | getV5UsersUsername | GET /v5/users/{username} | 获取一个用户 |
UsersApi | getV5UsersUsernameFollowers | GET /v5/users/{username}/followers | 列出指定用户的关注者 |
UsersApi | getV5UsersUsernameFollowing | GET /v5/users/{username}/following | 列出指定用户正在关注的用户 |
UsersApi | getV5UsersUsernameFollowingTargetUser | GET /v5/users/{username}/following/{target_user} | 检查指定用户是否关注目标用户 |
UsersApi | getV5UsersUsernameKeys | GET /v5/users/{username}/keys | 列出指定用户的所有公钥 |
UsersApi | patchV5User | PATCH /v5/user | 更新授权用户的资料 |
UsersApi | postV5UserKeys | POST /v5/user/keys | 添加一个公钥 |
UsersApi | putV5UserFollowingUsername | PUT /v5/user/following/{username} | 关注一个用户 |
WebhooksApi | deleteV5ReposOwnerRepoHooksId | DELETE /v5/repos/{owner}/{repo}/hooks/{id} | 删除一个仓库WebHook |
WebhooksApi | getV5ReposOwnerRepoHooks | GET /v5/repos/{owner}/{repo}/hooks | 列出仓库的WebHooks |
WebhooksApi | getV5ReposOwnerRepoHooksId | GET /v5/repos/{owner}/{repo}/hooks/{id} | 获取仓库单个WebHook |
WebhooksApi | patchV5ReposOwnerRepoHooksId | PATCH /v5/repos/{owner}/{repo}/hooks/{id} | 更新一个仓库WebHook |
WebhooksApi | postV5ReposOwnerRepoHooks | POST /v5/repos/{owner}/{repo}/hooks | 创建一个仓库WebHook |
WebhooksApi | postV5ReposOwnerRepoHooksIdTests | POST /v5/repos/{owner}/{repo}/hooks/{id}/tests | 测试WebHook是否发送成功 |
- AttachFile
- Blame
- Blob
- Branch
- CheckAnnotation
- CheckRun
- Code
- CodeComment
- CodeForks
- CodeForksHistory
- Commit
- CommitContent
- CommitParentsBasic
- Compare
- CompleteBranch
- Content
- ContentBasic
- Contributor
- DiffFile
- EnterpriseBasic
- EnterpriseMember
- Event
- GitUser
- GiteeMetrics
- Group
- GroupBasic
- GroupDetail
- GroupFollowers
- GroupMember
- Hook
- Issue
- IssueState
- IssueType
- Label
- Milestone
- ModelNamespace
- NamespaceMini
- Note
- OperateLog
- PostV5ReposOwnerRepoCommits
- PostV5ReposOwnerRepoCommitsActions
- PostV5ReposOwnerRepoCommitsAuthor
- ProgramBasic
- Project
- ProjectBasic
- ProjectLabel
- ProjectMember
- ProjectMemberPermission
- ProjectMini
- ProjectPushConfig
- ProjectStargazers
- ProjectTrafficData
- ProjectTrafficDataDesc
- ProjectTrafficDataSummary
- ProjectWatchers
- ProtectionRule
- PullRequest
- PullRequestComments
- PullRequestCommits
- PullRequestFiles
- RefPullRequest
- Release
- RepoCommit
- RepoCommitWithFiles
- SSHKey
- SSHKeyBasic
- Tag
- Tree
- User
- UserAssignee
- UserBasic
- UserDetail
- UserEmail
- UserInfo
- UserMessage
- UserMessageList
- UserMini
- UserNotification
- UserNotificationCount
- UserNotificationList
- UserNotificationNamespace
- UserNotificationSubject
- WeekReport