1 Star 0 Fork 2

canpool / python-gitee

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MulanPSL-2.0

python-gitee

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 5.4.81
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import gitee

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import gitee

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import gitee
from gitee.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
owner = 'owner_example' # str | 仓库所属空间地址(企业、组织或个人的地址path)
repo = 'repo_example' # str | 仓库路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)

try:
    # 取消 star 一个仓库
    api_instance.delete_v5_user_starred_owner_repo(owner, repo, access_token=access_token)
except ApiException as e:
    print("Exception when calling ActivityApi->delete_v5_user_starred_owner_repo: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
owner = 'owner_example' # str | 仓库所属空间地址(企业、组织或个人的地址path)
repo = 'repo_example' # str | 仓库路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)

try:
    # 取消 watch 一个仓库
    api_instance.delete_v5_user_subscriptions_owner_repo(owner, repo, access_token=access_token)
except ApiException as e:
    print("Exception when calling ActivityApi->delete_v5_user_subscriptions_owner_repo: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
owner = 'owner_example' # str | 仓库所属空间地址(企业、组织或个人的地址path)
repo = 'repo_example' # str | 仓库路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)
prev_id = 56 # int | 滚动列表的最后一条记录的id (optional)
limit = 20 # int | 滚动列表每页的数量,最大为 100 (optional) (default to 20)

try:
    # 列出仓库的所有公开动态
    api_response = api_instance.get_v5_networks_owner_repo_events(owner, repo, access_token=access_token, prev_id=prev_id, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_networks_owner_repo_events: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
access_token = 'access_token_example' # str | 用户授权码 (optional)
unread = true # bool | 是否只获取未读消息,默认:否 (optional)

try:
    # 获取授权用户的通知数
    api_response = api_instance.get_v5_notifications_count(access_token=access_token, unread=unread)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_notifications_count: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
access_token = 'access_token_example' # str | 用户授权码 (optional)
unread = true # bool | 是否只显示未读私信,默认:否 (optional)
since = 'since_example' # str | 只获取在给定时间后更新的私信,要求时间格式为 ISO 8601 (optional)
before = 'before_example' # str | 只获取在给定时间前更新的私信,要求时间格式为 ISO 8601 (optional)
ids = 'ids_example' # str | 指定一组私信 ID,以 , 分隔 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量,最大为 100 (optional) (default to 20)

try:
    # 列出授权用户的所有私信
    api_response = api_instance.get_v5_notifications_messages(access_token=access_token, unread=unread, since=since, before=before, ids=ids, page=page, per_page=per_page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_notifications_messages: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
id = 'id_example' # str | 私信的 ID
access_token = 'access_token_example' # str | 用户授权码 (optional)

try:
    # 获取一条私信
    api_response = api_instance.get_v5_notifications_messages_id(id, access_token=access_token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_notifications_messages_id: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
access_token = 'access_token_example' # str | 用户授权码 (optional)
unread = true # bool | 是否只获取未读消息,默认:否 (optional)
participating = true # bool | 是否只获取自己直接参与的消息,默认:否 (optional)
type = 'all' # str | 筛选指定类型的通知,all:所有,event:事件通知,referer:@ 通知 (optional) (default to all)
since = 'since_example' # str | 只获取在给定时间后更新的消息,要求时间格式为 ISO 8601 (optional)
before = 'before_example' # str | 只获取在给定时间前更新的消息,要求时间格式为 ISO 8601 (optional)
ids = 'ids_example' # str | 指定一组通知 ID,以 , 分隔 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量,最大为 100 (optional) (default to 20)

try:
    # 列出授权用户的所有通知
    api_response = api_instance.get_v5_notifications_threads(access_token=access_token, unread=unread, participating=participating, type=type, since=since, before=before, ids=ids, page=page, per_page=per_page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_notifications_threads: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
id = 'id_example' # str | 通知的 ID
access_token = 'access_token_example' # str | 用户授权码 (optional)

try:
    # 获取一条通知
    api_response = api_instance.get_v5_notifications_threads_id(id, access_token=access_token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_notifications_threads_id: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
org = 'org_example' # str | 组织的路径(path/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
prev_id = 56 # int | 滚动列表的最后一条记录的id (optional)
limit = 20 # int | 滚动列表每页的数量,最大为 100 (optional) (default to 20)

try:
    # 列出组织的公开动态
    api_response = api_instance.get_v5_orgs_org_events(org, access_token=access_token, prev_id=prev_id, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_orgs_org_events: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
owner = 'owner_example' # str | 仓库所属空间地址(企业、组织或个人的地址path)
repo = 'repo_example' # str | 仓库路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)
prev_id = 56 # int | 滚动列表的最后一条记录的id (optional)
limit = 20 # int | 滚动列表每页的数量,最大为 100 (optional) (default to 20)

try:
    # 列出仓库的所有动态
    api_response = api_instance.get_v5_repos_owner_repo_events(owner, repo, access_token=access_token, prev_id=prev_id, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_repos_owner_repo_events: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
owner = 'owner_example' # str | 仓库所属空间地址(企业、组织或个人的地址path)
repo = 'repo_example' # str | 仓库路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)
unread = true # bool | 是否只获取未读消息,默认:否 (optional)
participating = true # bool | 是否只获取自己直接参与的消息,默认:否 (optional)
type = 'all' # str | 筛选指定类型的通知,all:所有,event:事件通知,referer:@ 通知 (optional) (default to all)
since = 'since_example' # str | 只获取在给定时间后更新的消息,要求时间格式为 ISO 8601 (optional)
before = 'before_example' # str | 只获取在给定时间前更新的消息,要求时间格式为 ISO 8601 (optional)
ids = 'ids_example' # str | 指定一组通知 ID,以 , 分隔 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量,最大为 100 (optional) (default to 20)

try:
    # 列出一个仓库里的通知
    api_response = api_instance.get_v5_repos_owner_repo_notifications(owner, repo, access_token=access_token, unread=unread, participating=participating, type=type, since=since, before=before, ids=ids, page=page, per_page=per_page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_repos_owner_repo_notifications: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
owner = 'owner_example' # str | 仓库所属空间地址(企业、组织或个人的地址path)
repo = 'repo_example' # str | 仓库路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量,最大为 100 (optional) (default to 20)

try:
    # 列出 star 了仓库的用户
    api_response = api_instance.get_v5_repos_owner_repo_stargazers(owner, repo, access_token=access_token, page=page, per_page=per_page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_repos_owner_repo_stargazers: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
owner = 'owner_example' # str | 仓库所属空间地址(企业、组织或个人的地址path)
repo = 'repo_example' # str | 仓库路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量,最大为 100 (optional) (default to 20)

try:
    # 列出 watch 了仓库的用户
    api_response = api_instance.get_v5_repos_owner_repo_subscribers(owner, repo, access_token=access_token, page=page, per_page=per_page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_repos_owner_repo_subscribers: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
access_token = 'access_token_example' # str | 用户授权码 (optional)
sort = 'created' # str | 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 (optional) (default to created)
direction = 'desc' # str | 按递增(asc)或递减(desc)排序,默认:递减 (optional) (default to desc)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量,最大为 100 (optional) (default to 20)

try:
    # 列出授权用户 star 了的仓库
    api_response = api_instance.get_v5_user_starred(access_token=access_token, sort=sort, direction=direction, page=page, per_page=per_page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_user_starred: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
owner = 'owner_example' # str | 仓库所属空间地址(企业、组织或个人的地址path)
repo = 'repo_example' # str | 仓库路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)

try:
    # 检查授权用户是否 star 了一个仓库
    api_instance.get_v5_user_starred_owner_repo(owner, repo, access_token=access_token)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_user_starred_owner_repo: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
access_token = 'access_token_example' # str | 用户授权码 (optional)
sort = 'created' # str | 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 (optional) (default to created)
direction = 'desc' # str | 按递增(asc)或递减(desc)排序,默认:递减 (optional) (default to desc)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量,最大为 100 (optional) (default to 20)

try:
    # 列出授权用户 watch 了的仓库
    api_response = api_instance.get_v5_user_subscriptions(access_token=access_token, sort=sort, direction=direction, page=page, per_page=per_page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_user_subscriptions: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
owner = 'owner_example' # str | 仓库所属空间地址(企业、组织或个人的地址path)
repo = 'repo_example' # str | 仓库路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)

try:
    # 检查授权用户是否 watch 了一个仓库
    api_instance.get_v5_user_subscriptions_owner_repo(owner, repo, access_token=access_token)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_user_subscriptions_owner_repo: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
prev_id = 56 # int | 滚动列表的最后一条记录的id (optional)
limit = 20 # int | 滚动列表每页的数量,最大为 100 (optional) (default to 20)

try:
    # 列出用户的动态
    api_response = api_instance.get_v5_users_username_events(username, access_token=access_token, prev_id=prev_id, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_users_username_events: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
username = 'username_example' # str | 用户名(username/login)
org = 'org_example' # str | 组织的路径(path/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
prev_id = 56 # int | 滚动列表的最后一条记录的id (optional)
limit = 20 # int | 滚动列表每页的数量,最大为 100 (optional) (default to 20)

try:
    # 列出用户所属组织的动态
    api_response = api_instance.get_v5_users_username_events_orgs_org(username, org, access_token=access_token, prev_id=prev_id, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_users_username_events_orgs_org: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
prev_id = 56 # int | 滚动列表的最后一条记录的id (optional)
limit = 20 # int | 滚动列表每页的数量,最大为 100 (optional) (default to 20)

try:
    # 列出用户的公开动态
    api_response = api_instance.get_v5_users_username_events_public(username, access_token=access_token, prev_id=prev_id, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_users_username_events_public: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
prev_id = 56 # int | 滚动列表的最后一条记录的id (optional)
limit = 20 # int | 滚动列表每页的数量,最大为 100 (optional) (default to 20)

try:
    # 列出一个用户收到的动态
    api_response = api_instance.get_v5_users_username_received_events(username, access_token=access_token, prev_id=prev_id, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_users_username_received_events: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
prev_id = 56 # int | 滚动列表的最后一条记录的id (optional)
limit = 20 # int | 滚动列表每页的数量,最大为 100 (optional) (default to 20)

try:
    # 列出一个用户收到的公开动态
    api_response = api_instance.get_v5_users_username_received_events_public(username, access_token=access_token, prev_id=prev_id, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_users_username_received_events_public: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
prev_id = 56 # int | 滚动列表的最后一条记录的id (optional)
limit = 20 # int | 滚动列表每页的数量,最大为 100 (optional) (default to 20)
sort = 'created' # str | 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 (optional) (default to created)
direction = 'desc' # str | 按递增(asc)或递减(desc)排序,默认:递减 (optional) (default to desc)

try:
    # 列出用户 star 了的仓库
    api_response = api_instance.get_v5_users_username_starred(username, access_token=access_token, prev_id=prev_id, limit=limit, sort=sort, direction=direction)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_users_username_starred: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
prev_id = 56 # int | 滚动列表的最后一条记录的id (optional)
limit = 20 # int | 滚动列表每页的数量,最大为 100 (optional) (default to 20)
sort = 'created' # str | 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 (optional) (default to created)
direction = 'desc' # str | 按递增(asc)或递减(desc)排序,默认:递减 (optional) (default to desc)

try:
    # 列出用户 watch 了的仓库
    api_response = api_instance.get_v5_users_username_subscriptions(username, access_token=access_token, prev_id=prev_id, limit=limit, sort=sort, direction=direction)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->get_v5_users_username_subscriptions: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
id = 'id_example' # str | 私信的 ID
access_token = 'access_token_example' # str |  (optional)

try:
    # 标记一条私信为已读
    api_instance.patch_v5_notifications_messages_id(id, access_token=access_token)
except ApiException as e:
    print("Exception when calling ActivityApi->patch_v5_notifications_messages_id: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
id = 'id_example' # str | 通知的 ID
access_token = 'access_token_example' # str |  (optional)

try:
    # 标记一条通知为已读
    api_instance.patch_v5_notifications_threads_id(id, access_token=access_token)
except ApiException as e:
    print("Exception when calling ActivityApi->patch_v5_notifications_threads_id: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
body = gitee.NotificationsMessagesBody1() # NotificationsMessagesBody1 |

try:
    # 发送私信给指定用户
    api_response = api_instance.post_v5_notifications_messages(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivityApi->post_v5_notifications_messages: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
body = gitee.NotificationsMessagesBody() # NotificationsMessagesBody |  (optional)

try:
    # 标记所有私信为已读
    api_instance.put_v5_notifications_messages(body=body)
except ApiException as e:
    print("Exception when calling ActivityApi->put_v5_notifications_messages: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
body = gitee.NotificationsThreadsBody() # NotificationsThreadsBody |  (optional)

try:
    # 标记所有通知为已读
    api_instance.put_v5_notifications_threads(body=body)
except ApiException as e:
    print("Exception when calling ActivityApi->put_v5_notifications_threads: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
owner = 'owner_example' # str | 仓库所属空间地址(企业、组织或个人的地址path)
repo = 'repo_example' # str | 仓库路径(path)
body = gitee.RepoNotificationsBody() # RepoNotificationsBody |  (optional)

try:
    # 标记一个仓库里的通知为已读
    api_instance.put_v5_repos_owner_repo_notifications(owner, repo, body=body)
except ApiException as e:
    print("Exception when calling ActivityApi->put_v5_repos_owner_repo_notifications: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
owner = 'owner_example' # str | 仓库所属空间地址(企业、组织或个人的地址path)
repo = 'repo_example' # str | 仓库路径(path)
body = gitee.OwnerRepoBody1() # OwnerRepoBody1 |  (optional)

try:
    # star 一个仓库
    api_instance.put_v5_user_starred_owner_repo(owner, repo, body=body)
except ApiException as e:
    print("Exception when calling ActivityApi->put_v5_user_starred_owner_repo: %s\n" % e)

# create an instance of the API class
api_instance = gitee.ActivityApi(gitee.ApiClient(configuration))
body = gitee.OwnerRepoBody2() # OwnerRepoBody2 |
owner = 'owner_example' # str | 仓库所属空间地址(企业、组织或个人的地址path)
repo = 'repo_example' # str | 仓库路径(path)

try:
    # watch 一个仓库
    api_instance.put_v5_user_subscriptions_owner_repo(body, owner, repo)
except ApiException as e:
    print("Exception when calling ActivityApi->put_v5_user_subscriptions_owner_repo: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://gitee.com/api

Class Method HTTP request Description
ActivityApi delete_v5_user_starred_owner_repo DELETE /v5/user/starred/{owner}/{repo} 取消 star 一个仓库
ActivityApi delete_v5_user_subscriptions_owner_repo DELETE /v5/user/subscriptions/{owner}/{repo} 取消 watch 一个仓库
ActivityApi get_v5_networks_owner_repo_events GET /v5/networks/{owner}/{repo}/events 列出仓库的所有公开动态
ActivityApi get_v5_notifications_count GET /v5/notifications/count 获取授权用户的通知数
ActivityApi get_v5_notifications_messages GET /v5/notifications/messages 列出授权用户的所有私信
ActivityApi get_v5_notifications_messages_id GET /v5/notifications/messages/{id} 获取一条私信
ActivityApi get_v5_notifications_threads GET /v5/notifications/threads 列出授权用户的所有通知
ActivityApi get_v5_notifications_threads_id GET /v5/notifications/threads/{id} 获取一条通知
ActivityApi get_v5_orgs_org_events GET /v5/orgs/{org}/events 列出组织的公开动态
ActivityApi get_v5_repos_owner_repo_events GET /v5/repos/{owner}/{repo}/events 列出仓库的所有动态
ActivityApi get_v5_repos_owner_repo_notifications GET /v5/repos/{owner}/{repo}/notifications 列出一个仓库里的通知
ActivityApi get_v5_repos_owner_repo_stargazers GET /v5/repos/{owner}/{repo}/stargazers 列出 star 了仓库的用户
ActivityApi get_v5_repos_owner_repo_subscribers GET /v5/repos/{owner}/{repo}/subscribers 列出 watch 了仓库的用户
ActivityApi get_v5_user_starred GET /v5/user/starred 列出授权用户 star 了的仓库
ActivityApi get_v5_user_starred_owner_repo GET /v5/user/starred/{owner}/{repo} 检查授权用户是否 star 了一个仓库
ActivityApi get_v5_user_subscriptions GET /v5/user/subscriptions 列出授权用户 watch 了的仓库
ActivityApi get_v5_user_subscriptions_owner_repo GET /v5/user/subscriptions/{owner}/{repo} 检查授权用户是否 watch 了一个仓库
ActivityApi get_v5_users_username_events GET /v5/users/{username}/events 列出用户的动态
ActivityApi get_v5_users_username_events_orgs_org GET /v5/users/{username}/events/orgs/{org} 列出用户所属组织的动态
ActivityApi get_v5_users_username_events_public GET /v5/users/{username}/events/public 列出用户的公开动态
ActivityApi get_v5_users_username_received_events GET /v5/users/{username}/received_events 列出一个用户收到的动态
ActivityApi get_v5_users_username_received_events_public GET /v5/users/{username}/received_events/public 列出一个用户收到的公开动态
ActivityApi get_v5_users_username_starred GET /v5/users/{username}/starred 列出用户 star 了的仓库
ActivityApi get_v5_users_username_subscriptions GET /v5/users/{username}/subscriptions 列出用户 watch 了的仓库
ActivityApi patch_v5_notifications_messages_id PATCH /v5/notifications/messages/{id} 标记一条私信为已读
ActivityApi patch_v5_notifications_threads_id PATCH /v5/notifications/threads/{id} 标记一条通知为已读
ActivityApi post_v5_notifications_messages POST /v5/notifications/messages 发送私信给指定用户
ActivityApi put_v5_notifications_messages PUT /v5/notifications/messages 标记所有私信为已读
ActivityApi put_v5_notifications_threads PUT /v5/notifications/threads 标记所有通知为已读
ActivityApi put_v5_repos_owner_repo_notifications PUT /v5/repos/{owner}/{repo}/notifications 标记一个仓库里的通知为已读
ActivityApi put_v5_user_starred_owner_repo PUT /v5/user/starred/{owner}/{repo} star 一个仓库
ActivityApi put_v5_user_subscriptions_owner_repo PUT /v5/user/subscriptions/{owner}/{repo} watch 一个仓库
EmailsApi get_v5_emails GET /v5/emails 获取授权用户的全部邮箱
EnterprisesApi delete_v5_enterprises_enterprise_members_username DELETE /v5/enterprises/{enterprise}/members/{username} 移除企业成员
EnterprisesApi delete_v5_enterprises_enterprise_week_reports_report_id_comments_id DELETE /v5/enterprises/{enterprise}/week_reports/{report_id}/comments/{id} 删除周报某个评论
EnterprisesApi get_v5_enterprise_enterprise_pull_requests GET /v5/enterprise/{enterprise}/pull_requests 企业 Pull Request 列表
EnterprisesApi get_v5_enterprises_enterprise GET /v5/enterprises/{enterprise} 获取一个企业
EnterprisesApi get_v5_enterprises_enterprise_members GET /v5/enterprises/{enterprise}/members 列出企业的所有成员
EnterprisesApi get_v5_enterprises_enterprise_members_search GET /v5/enterprises/{enterprise}/members/search 获取企业成员信息(通过用户名/邮箱)
EnterprisesApi get_v5_enterprises_enterprise_members_username GET /v5/enterprises/{enterprise}/members/{username} 获取企业的一个成员
EnterprisesApi get_v5_enterprises_enterprise_users_username_week_reports GET /v5/enterprises/{enterprise}/users/{username}/week_reports 个人周报列表
EnterprisesApi get_v5_enterprises_enterprise_week_reports GET /v5/enterprises/{enterprise}/week_reports 企业成员周报列表
EnterprisesApi get_v5_enterprises_enterprise_week_reports_id GET /v5/enterprises/{enterprise}/week_reports/{id} 周报详情
EnterprisesApi get_v5_enterprises_enterprise_week_reports_id_comments GET /v5/enterprises/{enterprise}/week_reports/{id}/comments 某个周报评论列表
EnterprisesApi get_v5_user_enterprises GET /v5/user/enterprises 列出授权用户所属的企业
EnterprisesApi patch_v5_enterprises_enterprise_week_report_id PATCH /v5/enterprises/{enterprise}/week_report/{id} 编辑周报
EnterprisesApi post_v5_enterprises_enterprise_members POST /v5/enterprises/{enterprise}/members 添加或邀请企业成员
EnterprisesApi post_v5_enterprises_enterprise_week_report POST /v5/enterprises/{enterprise}/week_report 新建周报
EnterprisesApi post_v5_enterprises_enterprise_week_reports_id_comment POST /v5/enterprises/{enterprise}/week_reports/{id}/comment 评论周报
EnterprisesApi put_v5_enterprises_enterprise_members_username PUT /v5/enterprises/{enterprise}/members/{username} 修改企业成员权限或备注
GistsApi delete_v5_gists_gist_id_comments_id DELETE /v5/gists/{gist_id}/comments/{id} 删除代码片段的评论
GistsApi delete_v5_gists_id DELETE /v5/gists/{id} 删除指定代码片段
GistsApi delete_v5_gists_id_star DELETE /v5/gists/{id}/star 取消Star代码片段
GistsApi get_v5_gists GET /v5/gists 获取代码片段
GistsApi get_v5_gists_gist_id_comments GET /v5/gists/{gist_id}/comments 获取代码片段的评论
GistsApi get_v5_gists_gist_id_comments_id GET /v5/gists/{gist_id}/comments/{id} 获取单条代码片段的评论
GistsApi get_v5_gists_id GET /v5/gists/{id} 获取单条代码片段
GistsApi get_v5_gists_id_commits GET /v5/gists/{id}/commits 获取代码片段的commit
GistsApi get_v5_gists_id_forks GET /v5/gists/{id}/forks 获取 Fork 了指定代码片段的列表
GistsApi get_v5_gists_id_star GET /v5/gists/{id}/star 判断代码片段是否已Star
GistsApi get_v5_gists_starred GET /v5/gists/starred 获取用户Star的代码片段
GistsApi patch_v5_gists_gist_id_comments_id PATCH /v5/gists/{gist_id}/comments/{id} 修改代码片段的评论
GistsApi patch_v5_gists_id PATCH /v5/gists/{id} 修改代码片段
GistsApi post_v5_gists POST /v5/gists 创建代码片段
GistsApi post_v5_gists_gist_id_comments POST /v5/gists/{gist_id}/comments 增加代码片段的评论
GistsApi post_v5_gists_id_forks POST /v5/gists/{id}/forks Fork代码片段
GistsApi put_v5_gists_id_star PUT /v5/gists/{id}/star Star代码片段
GitDataApi get_v5_repos_owner_repo_git_blobs_sha GET /v5/repos/{owner}/{repo}/git/blobs/{sha} 获取文件Blob
GitDataApi get_v5_repos_owner_repo_git_gitee_metrics GET /v5/repos/{owner}/{repo}/git/gitee_metrics 获取 Gitee 指数
GitDataApi get_v5_repos_owner_repo_git_trees_sha GET /v5/repos/{owner}/{repo}/git/trees/{sha} 获取目录Tree
IssuesApi delete_v5_repos_owner_repo_issues_comments_id DELETE /v5/repos/{owner}/{repo}/issues/comments/{id} 删除Issue某条评论
IssuesApi get_v5_enterprises_enterprise_issues GET /v5/enterprises/{enterprise}/issues 获取某个企业的所有Issues
IssuesApi get_v5_enterprises_enterprise_issues_number GET /v5/enterprises/{enterprise}/issues/{number} 获取企业的某个Issue
IssuesApi get_v5_enterprises_enterprise_issues_number_comments GET /v5/enterprises/{enterprise}/issues/{number}/comments 获取企业某个Issue所有评论
IssuesApi get_v5_enterprises_enterprise_issues_number_labels GET /v5/enterprises/{enterprise}/issues/{number}/labels 获取企业某个Issue所有标签
IssuesApi get_v5_enterprises_enterprise_issues_number_pull_requests GET /v5/enterprises/{enterprise}/issues/{number}/pull_requests 获取企业 issue 关联的 Pull Requests
IssuesApi get_v5_issues GET /v5/issues 获取当前授权用户的所有Issues
IssuesApi get_v5_orgs_org_issues GET /v5/orgs/{org}/issues 获取当前用户某个组织的Issues
IssuesApi get_v5_repos_owner_issues_number_operate_logs GET /v5/repos/{owner}/issues/{number}/operate_logs 获取某个Issue下的操作日志
IssuesApi get_v5_repos_owner_issues_number_pull_requests GET /v5/repos/{owner}/issues/{number}/pull_requests 获取 issue 关联的 Pull Requests
IssuesApi get_v5_repos_owner_repo_issues GET /v5/repos/{owner}/{repo}/issues 仓库的所有Issues
IssuesApi get_v5_repos_owner_repo_issues_comments GET /v5/repos/{owner}/{repo}/issues/comments 获取仓库所有Issue的评论
IssuesApi get_v5_repos_owner_repo_issues_comments_id GET /v5/repos/{owner}/{repo}/issues/comments/{id} 获取仓库Issue某条评论
IssuesApi get_v5_repos_owner_repo_issues_number GET /v5/repos/{owner}/{repo}/issues/{number} 仓库的某个Issue
IssuesApi get_v5_repos_owner_repo_issues_number_comments GET /v5/repos/{owner}/{repo}/issues/{number}/comments 获取仓库某个Issue所有的评论
IssuesApi get_v5_user_issues GET /v5/user/issues 获取授权用户的所有Issues
IssuesApi patch_v5_enterprises_enterprise_issues_number PATCH /v5/enterprises/{enterprise}/issues/{number} 更新企业的某个Issue
IssuesApi patch_v5_repos_owner_issues_number PATCH /v5/repos/{owner}/issues/{number} 更新Issue
IssuesApi patch_v5_repos_owner_repo_issues_comments_id PATCH /v5/repos/{owner}/{repo}/issues/comments/{id} 更新Issue某条评论
IssuesApi post_v5_repos_owner_issues POST /v5/repos/{owner}/issues 创建Issue
IssuesApi post_v5_repos_owner_repo_issues_number_comments POST /v5/repos/{owner}/{repo}/issues/{number}/comments 创建某个Issue评论
LabelsApi delete_v5_repos_owner_repo_issues_number_labels DELETE /v5/repos/{owner}/{repo}/issues/{number}/labels 删除Issue所有标签
LabelsApi delete_v5_repos_owner_repo_issues_number_labels_name DELETE /v5/repos/{owner}/{repo}/issues/{number}/labels/{name} 删除Issue标签
LabelsApi delete_v5_repos_owner_repo_labels_name DELETE /v5/repos/{owner}/{repo}/labels/{name} 删除一个仓库任务标签
LabelsApi delete_v5_repos_owner_repo_project_labels DELETE /v5/repos/{owner}/{repo}/project_labels 删除仓库标签
LabelsApi get_v5_enterprises_enterprise_labels GET /v5/enterprises/{enterprise}/labels 获取企业所有标签
LabelsApi get_v5_enterprises_enterprise_labels_name GET /v5/enterprises/{enterprise}/labels/{name} 获取企业某个标签
LabelsApi get_v5_repos_owner_repo_issues_number_labels GET /v5/repos/{owner}/{repo}/issues/{number}/labels 获取仓库任务的所有标签
LabelsApi get_v5_repos_owner_repo_labels GET /v5/repos/{owner}/{repo}/labels 获取仓库所有任务标签
LabelsApi get_v5_repos_owner_repo_labels_name GET /v5/repos/{owner}/{repo}/labels/{name} 根据标签名称获取单个标签
LabelsApi get_v5_repos_owner_repo_project_labels GET /v5/repos/{owner}/{repo}/project_labels 获取仓库所有标签
LabelsApi patch_v5_repos_owner_repo_labels_original_name PATCH /v5/repos/{owner}/{repo}/labels/{original_name} 更新一个仓库任务标签
LabelsApi post_v5_repos_owner_repo_issues_number_labels POST /v5/repos/{owner}/{repo}/issues/{number}/labels 创建Issue标签
LabelsApi post_v5_repos_owner_repo_labels POST /v5/repos/{owner}/{repo}/labels 创建仓库任务标签
LabelsApi post_v5_repos_owner_repo_project_labels POST /v5/repos/{owner}/{repo}/project_labels 添加仓库标签
LabelsApi put_v5_repos_owner_repo_issues_number_labels PUT /v5/repos/{owner}/{repo}/issues/{number}/labels 替换Issue所有标签
LabelsApi put_v5_repos_owner_repo_project_labels PUT /v5/repos/{owner}/{repo}/project_labels 替换所有仓库标签
MilestonesApi delete_v5_repos_owner_repo_milestones_number DELETE /v5/repos/{owner}/{repo}/milestones/{number} 删除仓库单个里程碑
MilestonesApi get_v5_repos_owner_repo_milestones GET /v5/repos/{owner}/{repo}/milestones 获取仓库所有里程碑
MilestonesApi get_v5_repos_owner_repo_milestones_number GET /v5/repos/{owner}/{repo}/milestones/{number} 获取仓库单个里程碑
MilestonesApi patch_v5_repos_owner_repo_milestones_number PATCH /v5/repos/{owner}/{repo}/milestones/{number} 更新仓库里程碑
MilestonesApi post_v5_repos_owner_repo_milestones POST /v5/repos/{owner}/{repo}/milestones 创建仓库里程碑
MiscellaneousApi get_v5_emojis GET /v5/emojis 列出可使用的 Emoji
MiscellaneousApi get_v5_gitignore_templates GET /v5/gitignore/templates 列出可使用的 .gitignore 模板
MiscellaneousApi get_v5_gitignore_templates_name GET /v5/gitignore/templates/{name} 获取一个 .gitignore 模板
MiscellaneousApi get_v5_gitignore_templates_name_raw GET /v5/gitignore/templates/{name}/raw 获取一个 .gitignore 模板原始文件
MiscellaneousApi get_v5_licenses GET /v5/licenses 列出可使用的开源许可协议
MiscellaneousApi get_v5_licenses_license GET /v5/licenses/{license} 获取一个开源许可协议
MiscellaneousApi get_v5_licenses_license_raw GET /v5/licenses/{license}/raw 获取一个开源许可协议原始文件
MiscellaneousApi get_v5_repos_owner_repo_license GET /v5/repos/{owner}/{repo}/license 获取一个仓库使用的开源许可协议
MiscellaneousApi post_v5_markdown POST /v5/markdown 渲染 Markdown 文本
OrganizationsApi delete_v5_orgs_org_memberships_username DELETE /v5/orgs/{org}/memberships/{username} 移除授权用户所管理组织中的成员
OrganizationsApi delete_v5_user_memberships_orgs_org DELETE /v5/user/memberships/orgs/{org} 退出一个组织
OrganizationsApi get_v5_orgs_org GET /v5/orgs/{org} 获取一个组织
OrganizationsApi get_v5_orgs_org_followers GET /v5/orgs/{org}/followers 列出指定组织的所有关注者
OrganizationsApi get_v5_orgs_org_members GET /v5/orgs/{org}/members 列出一个组织的所有成员
OrganizationsApi get_v5_orgs_org_memberships_username GET /v5/orgs/{org}/memberships/{username} 获取授权用户所属组织的一个成员
OrganizationsApi get_v5_user_memberships_orgs GET /v5/user/memberships/orgs 列出授权用户在所属组织的成员资料
OrganizationsApi get_v5_user_memberships_orgs_org GET /v5/user/memberships/orgs/{org} 获取授权用户在一个组织的成员资料
OrganizationsApi get_v5_user_orgs GET /v5/user/orgs 列出授权用户所属的组织
OrganizationsApi get_v5_users_username_orgs GET /v5/users/{username}/orgs 列出用户所属的组织
OrganizationsApi patch_v5_orgs_org PATCH /v5/orgs/{org} 更新授权用户所管理的组织资料
OrganizationsApi patch_v5_user_memberships_orgs_org PATCH /v5/user/memberships/orgs/{org} 更新授权用户在一个组织的成员资料
OrganizationsApi post_v5_users_organization POST /v5/users/organization 创建组织
OrganizationsApi put_v5_orgs_org_memberships_username PUT /v5/orgs/{org}/memberships/{username} 增加或更新授权用户所管理组织的成员
PullRequestsApi delete_v5_repos_owner_repo_pulls_comments_id DELETE /v5/repos/{owner}/{repo}/pulls/comments/{id} 删除评论
PullRequestsApi delete_v5_repos_owner_repo_pulls_number_assignees DELETE /v5/repos/{owner}/{repo}/pulls/{number}/assignees 取消用户审查 Pull Request
PullRequestsApi delete_v5_repos_owner_repo_pulls_number_labels_name DELETE /v5/repos/{owner}/{repo}/pulls/{number}/labels/{name} 删除 Pull Request 标签
PullRequestsApi delete_v5_repos_owner_repo_pulls_number_testers DELETE /v5/repos/{owner}/{repo}/pulls/{number}/testers 取消用户测试 Pull Request
PullRequestsApi get_v5_repos_owner_repo_pulls GET /v5/repos/{owner}/{repo}/pulls 获取Pull Request列表
PullRequestsApi get_v5_repos_owner_repo_pulls_comments_id GET /v5/repos/{owner}/{repo}/pulls/comments/{id} 获取Pull Request的某个评论
PullRequestsApi get_v5_repos_owner_repo_pulls_number GET /v5/repos/{owner}/{repo}/pulls/{number} 获取单个Pull Request
PullRequestsApi get_v5_repos_owner_repo_pulls_number_comments GET /v5/repos/{owner}/{repo}/pulls/{number}/comments 获取某个Pull Request的所有评论
PullRequestsApi get_v5_repos_owner_repo_pulls_number_commits GET /v5/repos/{owner}/{repo}/pulls/{number}/commits 获取某Pull Request的所有Commit信息。最多显示250条Commit
PullRequestsApi get_v5_repos_owner_repo_pulls_number_files GET /v5/repos/{owner}/{repo}/pulls/{number}/files Pull Request Commit文件列表。最多显示300条diff
PullRequestsApi get_v5_repos_owner_repo_pulls_number_issues GET /v5/repos/{owner}/{repo}/pulls/{number}/issues 获取 Pull Request 关联的 issues
PullRequestsApi get_v5_repos_owner_repo_pulls_number_labels GET /v5/repos/{owner}/{repo}/pulls/{number}/labels 获取某个 Pull Request 的所有标签
PullRequestsApi get_v5_repos_owner_repo_pulls_number_merge GET /v5/repos/{owner}/{repo}/pulls/{number}/merge 判断Pull Request是否已经合并
PullRequestsApi get_v5_repos_owner_repo_pulls_number_operate_logs GET /v5/repos/{owner}/{repo}/pulls/{number}/operate_logs 获取某个Pull Request的操作日志
PullRequestsApi patch_v5_repos_owner_repo_pulls_comments_id PATCH /v5/repos/{owner}/{repo}/pulls/comments/{id} 编辑评论
PullRequestsApi patch_v5_repos_owner_repo_pulls_number PATCH /v5/repos/{owner}/{repo}/pulls/{number} 更新Pull Request信息
PullRequestsApi patch_v5_repos_owner_repo_pulls_number_assignees PATCH /v5/repos/{owner}/{repo}/pulls/{number}/assignees 重置 Pull Request 审查 的状态
PullRequestsApi patch_v5_repos_owner_repo_pulls_number_testers PATCH /v5/repos/{owner}/{repo}/pulls/{number}/testers 重置 Pull Request 测试 的状态
PullRequestsApi post_v5_repos_owner_repo_pulls POST /v5/repos/{owner}/{repo}/pulls 创建Pull Request
PullRequestsApi post_v5_repos_owner_repo_pulls_number_assignees POST /v5/repos/{owner}/{repo}/pulls/{number}/assignees 指派用户审查 Pull Request
PullRequestsApi post_v5_repos_owner_repo_pulls_number_comments POST /v5/repos/{owner}/{repo}/pulls/{number}/comments 提交Pull Request评论
PullRequestsApi post_v5_repos_owner_repo_pulls_number_labels POST /v5/repos/{owner}/{repo}/pulls/{number}/labels 创建 Pull Request 标签
PullRequestsApi post_v5_repos_owner_repo_pulls_number_review POST /v5/repos/{owner}/{repo}/pulls/{number}/review 处理 Pull Request 审查
PullRequestsApi post_v5_repos_owner_repo_pulls_number_test POST /v5/repos/{owner}/{repo}/pulls/{number}/test 处理 Pull Request 测试
PullRequestsApi post_v5_repos_owner_repo_pulls_number_testers POST /v5/repos/{owner}/{repo}/pulls/{number}/testers 指派用户测试 Pull Request
PullRequestsApi put_v5_repos_owner_repo_pulls_number_labels PUT /v5/repos/{owner}/{repo}/pulls/{number}/labels 替换 Pull Request 所有标签
PullRequestsApi put_v5_repos_owner_repo_pulls_number_merge PUT /v5/repos/{owner}/{repo}/pulls/{number}/merge 合并Pull Request
RepositoriesApi delete_v5_repos_owner_repo DELETE /v5/repos/{owner}/{repo} 删除一个仓库
RepositoriesApi delete_v5_repos_owner_repo_baidu_statistic_key DELETE /v5/repos/{owner}/{repo}/baidu_statistic_key 删除仓库的百度统计 key
RepositoriesApi delete_v5_repos_owner_repo_branches_branch_protection DELETE /v5/repos/{owner}/{repo}/branches/{branch}/protection 取消保护分支的设置
RepositoriesApi delete_v5_repos_owner_repo_branches_wildcard_setting DELETE /v5/repos/{owner}/{repo}/branches/{wildcard}/setting 删除保护分支规则
RepositoriesApi delete_v5_repos_owner_repo_collaborators_username DELETE /v5/repos/{owner}/{repo}/collaborators/{username} 移除仓库成员
RepositoriesApi delete_v5_repos_owner_repo_comments_id DELETE /v5/repos/{owner}/{repo}/comments/{id} 删除Commit评论
RepositoriesApi delete_v5_repos_owner_repo_contents_path DELETE /v5/repos/{owner}/{repo}/contents/{path} 删除文件
RepositoriesApi delete_v5_repos_owner_repo_keys_enable_id DELETE /v5/repos/{owner}/{repo}/keys/enable/{id} 停用仓库公钥
RepositoriesApi delete_v5_repos_owner_repo_keys_id DELETE /v5/repos/{owner}/{repo}/keys/{id} 删除一个仓库公钥
RepositoriesApi delete_v5_repos_owner_repo_releases_id DELETE /v5/repos/{owner}/{repo}/releases/{id} 删除仓库Release
RepositoriesApi get_v5_enterprises_enterprise_repos GET /v5/enterprises/{enterprise}/repos 获取企业的所有仓库
RepositoriesApi get_v5_orgs_org_repos GET /v5/orgs/{org}/repos 获取一个组织的仓库
RepositoriesApi get_v5_repos_owner_repo GET /v5/repos/{owner}/{repo} 获取用户的某个仓库
RepositoriesApi get_v5_repos_owner_repo_baidu_statistic_key GET /v5/repos/{owner}/{repo}/baidu_statistic_key 获取仓库的百度统计 key
RepositoriesApi get_v5_repos_owner_repo_blame_path GET /v5/repos/{owner}/{repo}/blame/{path} Blame
RepositoriesApi get_v5_repos_owner_repo_branches GET /v5/repos/{owner}/{repo}/branches 获取所有分支
RepositoriesApi get_v5_repos_owner_repo_branches_branch GET /v5/repos/{owner}/{repo}/branches/{branch} 获取单个分支
RepositoriesApi get_v5_repos_owner_repo_collaborators GET /v5/repos/{owner}/{repo}/collaborators 获取仓库的所有成员
RepositoriesApi get_v5_repos_owner_repo_collaborators_username GET /v5/repos/{owner}/{repo}/collaborators/{username} 判断用户是否为仓库成员
RepositoriesApi get_v5_repos_owner_repo_collaborators_username_permission GET /v5/repos/{owner}/{repo}/collaborators/{username}/permission 查看仓库成员的权限
RepositoriesApi get_v5_repos_owner_repo_comments GET /v5/repos/{owner}/{repo}/comments 获取仓库的Commit评论
RepositoriesApi get_v5_repos_owner_repo_comments_id GET /v5/repos/{owner}/{repo}/comments/{id} 获取仓库的某条Commit评论
RepositoriesApi get_v5_repos_owner_repo_commits GET /v5/repos/{owner}/{repo}/commits 仓库的所有提交
RepositoriesApi get_v5_repos_owner_repo_commits_ref_comments GET /v5/repos/{owner}/{repo}/commits/{ref}/comments 获取单个Commit的评论
RepositoriesApi get_v5_repos_owner_repo_commits_sha GET /v5/repos/{owner}/{repo}/commits/{sha} 仓库的某个提交
RepositoriesApi get_v5_repos_owner_repo_compare_base___head GET /v5/repos/{owner}/{repo}/compare/{base}...{head} Commits 对比
RepositoriesApi get_v5_repos_owner_repo_contents_path GET /v5/repos/{owner}/{repo}/contents(/{path}) 获取仓库具体路径下的内容
RepositoriesApi get_v5_repos_owner_repo_contributors GET /v5/repos/{owner}/{repo}/contributors 获取仓库贡献者
RepositoriesApi get_v5_repos_owner_repo_forks GET /v5/repos/{owner}/{repo}/forks 查看仓库的Forks
RepositoriesApi get_v5_repos_owner_repo_keys GET /v5/repos/{owner}/{repo}/keys 获取仓库已部署的公钥
RepositoriesApi get_v5_repos_owner_repo_keys_available GET /v5/repos/{owner}/{repo}/keys/available 获取仓库可部署的公钥
RepositoriesApi get_v5_repos_owner_repo_keys_id GET /v5/repos/{owner}/{repo}/keys/{id} 获取仓库的单个公钥
RepositoriesApi get_v5_repos_owner_repo_pages GET /v5/repos/{owner}/{repo}/pages 获取Pages信息
RepositoriesApi get_v5_repos_owner_repo_push_config GET /v5/repos/{owner}/{repo}/push_config 获取仓库推送规则设置
RepositoriesApi get_v5_repos_owner_repo_raw_path GET /v5/repos/{owner}/{repo}/raw/{path} 获取 raw 文件(100MB 以内)
RepositoriesApi get_v5_repos_owner_repo_readme GET /v5/repos/{owner}/{repo}/readme 获取仓库README
RepositoriesApi get_v5_repos_owner_repo_releases GET /v5/repos/{owner}/{repo}/releases 获取仓库的所有Releases
RepositoriesApi get_v5_repos_owner_repo_releases_id GET /v5/repos/{owner}/{repo}/releases/{id} 获取仓库的单个Releases
RepositoriesApi get_v5_repos_owner_repo_releases_latest GET /v5/repos/{owner}/{repo}/releases/latest 获取仓库的最后更新的Release
RepositoriesApi get_v5_repos_owner_repo_releases_tags_tag GET /v5/repos/{owner}/{repo}/releases/tags/{tag} 根据Tag名称获取仓库的Release
RepositoriesApi get_v5_repos_owner_repo_tags GET /v5/repos/{owner}/{repo}/tags 列出仓库所有的 tags
RepositoriesApi get_v5_repos_owner_repo_tarball GET /v5/repos/{owner}/{repo}/tarball 下载仓库 tar.gz
RepositoriesApi get_v5_repos_owner_repo_zipball GET /v5/repos/{owner}/{repo}/zipball 下载仓库 zip
RepositoriesApi get_v5_user_repos GET /v5/user/repos 列出授权用户的所有仓库
RepositoriesApi get_v5_users_username_repos GET /v5/users/{username}/repos 获取某个用户的公开仓库
RepositoriesApi patch_v5_repos_owner_repo PATCH /v5/repos/{owner}/{repo} 更新仓库设置
RepositoriesApi patch_v5_repos_owner_repo_comments_id PATCH /v5/repos/{owner}/{repo}/comments/{id} 更新Commit评论
RepositoriesApi patch_v5_repos_owner_repo_releases_id PATCH /v5/repos/{owner}/{repo}/releases/{id} 更新仓库Release
RepositoriesApi post_v5_enterprises_enterprise_repos POST /v5/enterprises/{enterprise}/repos 创建企业仓库
RepositoriesApi post_v5_orgs_org_repos POST /v5/orgs/{org}/repos 创建组织仓库
RepositoriesApi post_v5_repos_owner_repo_baidu_statistic_key POST /v5/repos/{owner}/{repo}/baidu_statistic_key 设置/更新仓库的百度统计 key
RepositoriesApi post_v5_repos_owner_repo_branches POST /v5/repos/{owner}/{repo}/branches 创建分支
RepositoriesApi post_v5_repos_owner_repo_commits POST /v5/repos/{owner}/{repo}/commits 提交多个文件变更
RepositoriesApi post_v5_repos_owner_repo_commits_sha_comments POST /v5/repos/{owner}/{repo}/commits/{sha}/comments 创建Commit评论
RepositoriesApi post_v5_repos_owner_repo_contents_path POST /v5/repos/{owner}/{repo}/contents/{path} 新建文件
RepositoriesApi post_v5_repos_owner_repo_forks POST /v5/repos/{owner}/{repo}/forks Fork一个仓库
RepositoriesApi post_v5_repos_owner_repo_keys POST /v5/repos/{owner}/{repo}/keys 为仓库添加公钥
RepositoriesApi post_v5_repos_owner_repo_open POST /v5/repos/{owner}/{repo}/open 开通Gitee Go
RepositoriesApi post_v5_repos_owner_repo_pages_builds POST /v5/repos/{owner}/{repo}/pages/builds 请求建立Pages
RepositoriesApi post_v5_repos_owner_repo_releases POST /v5/repos/{owner}/{repo}/releases 创建仓库Release
RepositoriesApi post_v5_repos_owner_repo_tags POST /v5/repos/{owner}/{repo}/tags 创建一个仓库的 Tag
RepositoriesApi post_v5_repos_owner_repo_traffic_data POST /v5/repos/{owner}/{repo}/traffic-data 获取最近30天的七日以内访问量
RepositoriesApi post_v5_user_repos POST /v5/user/repos 创建一个仓库
RepositoriesApi put_v5_repos_owner_repo_branches_branch_protection PUT /v5/repos/{owner}/{repo}/branches/{branch}/protection 设置分支保护
RepositoriesApi put_v5_repos_owner_repo_branches_setting_new PUT /v5/repos/{owner}/{repo}/branches/setting/new 新建保护分支规则
RepositoriesApi put_v5_repos_owner_repo_branches_wildcard_setting PUT /v5/repos/{owner}/{repo}/branches/{wildcard}/setting 更新保护分支规则
RepositoriesApi put_v5_repos_owner_repo_clear PUT /v5/repos/{owner}/{repo}/clear 清空一个仓库
RepositoriesApi put_v5_repos_owner_repo_collaborators_username PUT /v5/repos/{owner}/{repo}/collaborators/{username} 添加仓库成员或更新仓库成员权限
RepositoriesApi put_v5_repos_owner_repo_contents_path PUT /v5/repos/{owner}/{repo}/contents/{path} 更新文件
RepositoriesApi put_v5_repos_owner_repo_keys_enable_id PUT /v5/repos/{owner}/{repo}/keys/enable/{id} 启用仓库公钥
RepositoriesApi put_v5_repos_owner_repo_pages PUT /v5/repos/{owner}/{repo}/pages 上传设置 Pages SSL 证书和域名
RepositoriesApi put_v5_repos_owner_repo_push_config PUT /v5/repos/{owner}/{repo}/push_config 修改仓库推送规则设置
RepositoriesApi put_v5_repos_owner_repo_reviewer PUT /v5/repos/{owner}/{repo}/reviewer 修改代码审查设置
SearchApi get_v5_search_issues GET /v5/search/issues 搜索 Issues
SearchApi get_v5_search_repositories GET /v5/search/repositories 搜索仓库
SearchApi get_v5_search_users GET /v5/search/users 搜索用户
UsersApi delete_v5_user_following_username DELETE /v5/user/following/{username} 取消关注一个用户
UsersApi delete_v5_user_keys_id DELETE /v5/user/keys/{id} 删除一个公钥
UsersApi get_v5_user GET /v5/user 获取授权用户的资料
UsersApi get_v5_user_followers GET /v5/user/followers 列出授权用户的关注者
UsersApi get_v5_user_following GET /v5/user/following 列出授权用户正关注的用户
UsersApi get_v5_user_following_username GET /v5/user/following/{username} 检查授权用户是否关注了一个用户
UsersApi get_v5_user_keys GET /v5/user/keys 列出授权用户的所有公钥
UsersApi get_v5_user_keys_id GET /v5/user/keys/{id} 获取一个公钥
UsersApi get_v5_user_namespace GET /v5/user/namespace 获取授权用户的一个 Namespace
UsersApi get_v5_user_namespaces GET /v5/user/namespaces 列出授权用户所有的 Namespace
UsersApi get_v5_users_username GET /v5/users/{username} 获取一个用户
UsersApi get_v5_users_username_followers GET /v5/users/{username}/followers 列出指定用户的关注者
UsersApi get_v5_users_username_following GET /v5/users/{username}/following 列出指定用户正在关注的用户
UsersApi get_v5_users_username_following_target_user GET /v5/users/{username}/following/{target_user} 检查指定用户是否关注目标用户
UsersApi get_v5_users_username_keys GET /v5/users/{username}/keys 列出指定用户的所有公钥
UsersApi patch_v5_user PATCH /v5/user 更新授权用户的资料
UsersApi post_v5_user_keys POST /v5/user/keys 添加一个公钥
UsersApi put_v5_user_following_username PUT /v5/user/following/{username} 关注一个用户
WebhooksApi delete_v5_repos_owner_repo_hooks_id DELETE /v5/repos/{owner}/{repo}/hooks/{id} 删除一个仓库WebHook
WebhooksApi get_v5_repos_owner_repo_hooks GET /v5/repos/{owner}/{repo}/hooks 列出仓库的WebHooks
WebhooksApi get_v5_repos_owner_repo_hooks_id GET /v5/repos/{owner}/{repo}/hooks/{id} 获取仓库单个WebHook
WebhooksApi patch_v5_repos_owner_repo_hooks_id PATCH /v5/repos/{owner}/{repo}/hooks/{id} 更新一个仓库WebHook
WebhooksApi post_v5_repos_owner_repo_hooks POST /v5/repos/{owner}/{repo}/hooks 创建一个仓库WebHook
WebhooksApi post_v5_repos_owner_repo_hooks_id_tests POST /v5/repos/{owner}/{repo}/hooks/{id}/tests 测试WebHook是否发送成功

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

木兰宽松许可证, 第2版 木兰宽松许可证, 第2版 2020年1月 http://license.coscl.org.cn/MulanPSL2 您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第2版(“本许可证”)的如下条款的约束: 0. 定义 “软件”是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。 “贡献”是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。 “贡献者”是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。 “法人实体”是指提交贡献的机构及其“关联实体”。 “关联实体”是指,对“本许可证”下的行为方而言,控制、受控制或与其共同受控制的机构,此处的控制是指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。 1. 授予版权许可 每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可以复制、使用、修改、分发其“贡献”,不论修改与否。 2. 授予专利许可 每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软件”结合而将必然会侵犯的专利权利要求,不包括对“贡献”的修改或包含“贡献”的其他结合。如果您或您的“关联实体”直接或间接地,就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权行动之日终止。 3. 无商标许可 “本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定的声明义务而必须使用除外。 4. 分发限制 您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。 5. 免责声明与责任限制 “软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于何种法律理论,即使其曾被建议有此种损失的可能性。 6. 语言 “本许可证”以中英文双语表述,中英文版本具有同等法律效力。如果中英文版本存在任何冲突不一致,以中文版为准。 条款结束 如何将木兰宽松许可证,第2版,应用到您的软件 如果您希望将木兰宽松许可证,第2版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步: 1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字; 2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中; 3, 请将如下声明文本放入每个源文件的头部注释中。 Copyright (c) [Year] [name of copyright holder] [Software Name] is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details. Mulan Permissive Software License,Version 2 Mulan Permissive Software License,Version 2 (Mulan PSL v2) January 2020 http://license.coscl.org.cn/MulanPSL2 Your reproduction, use, modification and distribution of the Software shall be subject to Mulan PSL v2 (this License) with the following terms and conditions: 0. Definition Software means the program and related documents which are licensed under this License and comprise all Contribution(s). Contribution means the copyrightable work licensed by a particular Contributor under this License. Contributor means the Individual or Legal Entity who licenses its copyrightable work under this License. Legal Entity means the entity making a Contribution and all its Affiliates. Affiliates means entities that control, are controlled by, or are under common control with the acting entity under this License, ‘control’ means direct or indirect ownership of at least fifty percent (50%) of the voting power, capital or other securities of controlled or commonly controlled entity. 1. Grant of Copyright License Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable copyright license to reproduce, use, modify, or distribute its Contribution, with modification or not. 2. Grant of Patent License Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (except for revocation under this Section) patent license to make, have made, use, offer for sale, sell, import or otherwise transfer its Contribution, where such patent license is only limited to the patent claims owned or controlled by such Contributor now or in future which will be necessarily infringed by its Contribution alone, or by combination of the Contribution with the Software to which the Contribution was contributed. The patent license shall not apply to any modification of the Contribution, and any other combination which includes the Contribution. If you or your Affiliates directly or indirectly institute patent litigation (including a cross claim or counterclaim in a litigation) or other patent enforcement activities against any individual or entity by alleging that the Software or any Contribution in it infringes patents, then any patent license granted to you under this License for the Software shall terminate as of the date such litigation or activity is filed or taken. 3. No Trademark License No trademark license is granted to use the trade names, trademarks, service marks, or product names of Contributor, except as required to fulfill notice requirements in Section 4. 4. Distribution Restriction You may distribute the Software in any medium with or without modification, whether in source or executable forms, provided that you provide recipients with a copy of this License and retain copyright, patent, trademark and disclaimer statements in the Software. 5. Disclaimer of Warranty and Limitation of Liability THE SOFTWARE AND CONTRIBUTION IN IT ARE PROVIDED WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL ANY CONTRIBUTOR OR COPYRIGHT HOLDER BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING FROM YOUR USE OR INABILITY TO USE THE SOFTWARE OR THE CONTRIBUTION IN IT, NO MATTER HOW IT’S CAUSED OR BASED ON WHICH LEGAL THEORY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 6. Language THIS LICENSE IS WRITTEN IN BOTH CHINESE AND ENGLISH, AND THE CHINESE VERSION AND ENGLISH VERSION SHALL HAVE THE SAME LEGAL EFFECT. IN THE CASE OF DIVERGENCE BETWEEN THE CHINESE AND ENGLISH VERSIONS, THE CHINESE VERSION SHALL PREVAIL. END OF THE TERMS AND CONDITIONS How to Apply the Mulan Permissive Software License,Version 2 (Mulan PSL v2) to Your Software To apply the Mulan PSL v2 to your work, for easy identification by recipients, you are suggested to complete following three steps: i Fill in the blanks in following statement, including insert your software name, the year of the first publication of your software, and your name identified as the copyright owner; ii Create a file named “LICENSE” which contains the whole context of this License in the first directory of your software package; iii Attach the statement to the appropriate annotated syntax at the beginning of each source file. Copyright (c) [Year] [name of copyright holder] [Software Name] is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.

简介

A python wrapper for the Gitee API 展开 收起
Python
MulanPSL-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/icanpool/python-gitee.git
git@gitee.com:icanpool/python-gitee.git
icanpool
python-gitee
python-gitee
master

搜索帮助