All URIs are relative to https://gitee.com/api
Method | HTTP request | Description |
---|---|---|
delete_v5_user_starred_owner_repo | DELETE /v5/user/starred/{owner}/{repo} | 取消 star 一个项目 |
delete_v5_user_subscriptions_owner_repo | DELETE /v5/user/subscriptions/{owner}/{repo} | 取消 watch 一个项目 |
get_v5_events | GET /v5/events | 获取站内所有公开动态 |
get_v5_networks_owner_repo_events | GET /v5/networks/{owner}/{repo}/events | 列出项目的所有公开动态 |
get_v5_notifications_messages | GET /v5/notifications/messages | 列出授权用户的所有私信 |
get_v5_notifications_messages_id | GET /v5/notifications/messages/{id} | 获取一个私信 |
get_v5_notifications_threads | GET /v5/notifications/threads | 列出授权用户的所有通知 |
get_v5_notifications_threads_id | GET /v5/notifications/threads/{id} | 获取一个通知 |
get_v5_orgs_org_events | GET /v5/orgs/{org}/events | 列出组织的公开动态 |
get_v5_repos_owner_repo_events | GET /v5/repos/{owner}/{repo}/events | 列出项目的所有动态 |
get_v5_repos_owner_repo_notifications | GET /v5/repos/{owner}/{repo}/notifications | 列出一个项目里的通知 |
get_v5_repos_owner_repo_stargazers | GET /v5/repos/{owner}/{repo}/stargazers | 列出 star 了项目的用户 |
get_v5_repos_owner_repo_subscribers | GET /v5/repos/{owner}/{repo}/subscribers | 列出 watch 了项目的用户 |
get_v5_user_starred | GET /v5/user/starred | 列出授权用户 star 了的项目 |
get_v5_user_starred_owner_repo | GET /v5/user/starred/{owner}/{repo} | 检查授权用户是否 star 了一个项目 |
get_v5_user_subscriptions | GET /v5/user/subscriptions | 列出授权用户 watch 了的项目 |
get_v5_user_subscriptions_owner_repo | GET /v5/user/subscriptions/{owner}/{repo} | 检查授权用户是否 watch 了一个项目 |
get_v5_users_username_events | GET /v5/users/{username}/events | 列出用户的动态 |
get_v5_users_username_events_orgs_org | GET /v5/users/{username}/events/orgs/{org} | 列出用户所属组织的动态 |
get_v5_users_username_events_public | GET /v5/users/{username}/events/public | 列出用户的公开动态 |
get_v5_users_username_received_events | GET /v5/users/{username}/received_events | 列出一个用户收到的动态 |
get_v5_users_username_received_events_public | GET /v5/users/{username}/received_events/public | 列出一个用户收到的公开动态 |
get_v5_users_username_starred | GET /v5/users/{username}/starred | 列出用户 star 了的项目 |
get_v5_users_username_subscriptions | GET /v5/users/{username}/subscriptions | 列出用户 watch 了的项目 |
patch_v5_notifications_messages_id | PATCH /v5/notifications/messages/{id} | 标记一个私信为已读 |
patch_v5_notifications_threads_id | PATCH /v5/notifications/threads/{id} | 标记一个通知为已读 |
post_v5_notifications_messages | POST /v5/notifications/messages | 发送私信给指定用户 |
put_v5_notifications_messages | PUT /v5/notifications/messages | 标记所有私信为已读 |
put_v5_notifications_threads | PUT /v5/notifications/threads | 标记所有通知为已读 |
put_v5_repos_owner_repo_notifications | PUT /v5/repos/{owner}/{repo}/notifications | 标记一个项目里的通知为已读 |
put_v5_user_starred_owner_repo | PUT /v5/user/starred/{owner}/{repo} | star 一个项目 |
put_v5_user_subscriptions_owner_repo | PUT /v5/user/subscriptions/{owner}/{repo} | watch 一个项目 |
delete_v5_user_starred_owner_repo(owner, repo, access_token=access_token)
取消 star 一个项目
取消 star 一个项目
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
owner = 'owner_example' # str | 用户名(username/login)
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)
Name | Type | Description | Notes |
---|---|---|---|
owner | str | 用户名(username/login) | |
repo | str | 项目路径(path) | |
access_token | str | 用户授权码 | [optional] |
void (empty response body)
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_v5_user_subscriptions_owner_repo(owner, repo, access_token=access_token)
取消 watch 一个项目
取消 watch 一个项目
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
owner = 'owner_example' # str | 用户名(username/login)
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)
Name | Type | Description | Notes |
---|---|---|---|
owner | str | 用户名(username/login) | |
repo | str | 项目路径(path) | |
access_token | str | 用户授权码 | [optional] |
void (empty response body)
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Event] get_v5_events(access_token=access_token, page=page, per_page=per_page)
获取站内所有公开动态
获取站内所有公开动态
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (optional) (default to 20)
try:
# 获取站内所有公开动态
api_response = api_instance.get_v5_events(access_token=access_token, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling ActivityApi->get_v5_events: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | 用户授权码 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Event] get_v5_networks_owner_repo_events(owner, repo, access_token=access_token, page=page, per_page=per_page)
列出项目的所有公开动态
列出项目的所有公开动态
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
owner = 'owner_example' # str | 用户名(username/login)
repo = 'repo_example' # str | 项目路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (optional) (default to 20)
try:
# 列出项目的所有公开动态
api_response = api_instance.get_v5_networks_owner_repo_events(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_networks_owner_repo_events: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
owner | str | 用户名(username/login) | |
repo | str | 项目路径(path) | |
access_token | str | 用户授权码 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[UserMessage] get_v5_notifications_messages(access_token=access_token, unread=unread, since=since, before=before, page=page, per_page=per_page)
列出授权用户的所有私信
列出授权用户的所有私信
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
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)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (optional) (default to 20)
try:
# 列出授权用户的所有私信
api_response = api_instance.get_v5_notifications_messages(access_token=access_token, unread=unread, since=since, before=before, 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)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | 用户授权码 | [optional] |
unread | bool | 是否只显示未读私信,默认:否 | [optional] |
since | str | 只显示在给定时间后更新的私信,要求时间格式为 ISO 8601 | [optional] |
before | str | 只显示在给定时间前更新的私信,要求时间格式为 ISO 8601 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserMessage get_v5_notifications_messages_id(id, access_token=access_token)
获取一个私信
获取一个私信
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
id = 56 # int | 私信的 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)
Name | Type | Description | Notes |
---|---|---|---|
id | int | 私信的 ID | |
access_token | str | 用户授权码 | [optional] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[UserNotification] get_v5_notifications_threads(access_token=access_token, unread=unread, participating=participating, since=since, before=before, page=page, per_page=per_page)
列出授权用户的所有通知
列出授权用户的所有通知
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
access_token = 'access_token_example' # str | 用户授权码 (optional)
unread = true # bool | 是否只显示未读消息,默认:否 (optional)
participating = true # bool | 是否只显示自己直接参与的消息,默认:否 (optional)
since = 'since_example' # str | 只显示在给定时间后更新的消息,要求时间格式为 ISO 8601 (optional)
before = 'before_example' # str | 只显示在给定时间前更新的消息,要求时间格式为 ISO 8601 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (optional) (default to 20)
try:
# 列出授权用户的所有通知
api_response = api_instance.get_v5_notifications_threads(access_token=access_token, unread=unread, participating=participating, since=since, before=before, 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)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | 用户授权码 | [optional] |
unread | bool | 是否只显示未读消息,默认:否 | [optional] |
participating | bool | 是否只显示自己直接参与的消息,默认:否 | [optional] |
since | str | 只显示在给定时间后更新的消息,要求时间格式为 ISO 8601 | [optional] |
before | str | 只显示在给定时间前更新的消息,要求时间格式为 ISO 8601 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserNotification get_v5_notifications_threads_id(id, access_token=access_token)
获取一个通知
获取一个通知
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
id = 56 # int | 通知的 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)
Name | Type | Description | Notes |
---|---|---|---|
id | int | 通知的 ID | |
access_token | str | 用户授权码 | [optional] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Event] get_v5_orgs_org_events(org, access_token=access_token, page=page, per_page=per_page)
列出组织的公开动态
列出组织的公开动态
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
org = 'org_example' # str | 组织的路径(path/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (optional) (default to 20)
try:
# 列出组织的公开动态
api_response = api_instance.get_v5_orgs_org_events(org, access_token=access_token, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling ActivityApi->get_v5_orgs_org_events: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | 组织的路径(path/login) | |
access_token | str | 用户授权码 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Event] get_v5_repos_owner_repo_events(owner, repo, access_token=access_token, page=page, per_page=per_page)
列出项目的所有动态
列出项目的所有动态
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
owner = 'owner_example' # str | 用户名(username/login)
repo = 'repo_example' # str | 项目路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (optional) (default to 20)
try:
# 列出项目的所有动态
api_response = api_instance.get_v5_repos_owner_repo_events(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_events: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
owner | str | 用户名(username/login) | |
repo | str | 项目路径(path) | |
access_token | str | 用户授权码 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[UserNotification] get_v5_repos_owner_repo_notifications(owner, repo, access_token=access_token, unread=unread, participating=participating, since=since, before=before, page=page, per_page=per_page)
列出一个项目里的通知
列出一个项目里的通知
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
owner = 'owner_example' # str | 用户名(username/login)
repo = 'repo_example' # str | 项目路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)
unread = true # bool | 是否只显示未读消息,默认:否 (optional)
participating = true # bool | 是否只显示自己直接参与的消息,默认:否 (optional)
since = 'since_example' # str | 只显示在给定时间后更新的消息,要求时间格式为 ISO 8601 (optional)
before = 'before_example' # str | 只显示在给定时间前更新的消息,要求时间格式为 ISO 8601 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (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, since=since, before=before, 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)
Name | Type | Description | Notes |
---|---|---|---|
owner | str | 用户名(username/login) | |
repo | str | 项目路径(path) | |
access_token | str | 用户授权码 | [optional] |
unread | bool | 是否只显示未读消息,默认:否 | [optional] |
participating | bool | 是否只显示自己直接参与的消息,默认:否 | [optional] |
since | str | 只显示在给定时间后更新的消息,要求时间格式为 ISO 8601 | [optional] |
before | str | 只显示在给定时间前更新的消息,要求时间格式为 ISO 8601 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[UserBasic] get_v5_repos_owner_repo_stargazers(owner, repo, access_token=access_token, page=page, per_page=per_page)
列出 star 了项目的用户
列出 star 了项目的用户
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
owner = 'owner_example' # str | 用户名(username/login)
repo = 'repo_example' # str | 项目路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (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)
Name | Type | Description | Notes |
---|---|---|---|
owner | str | 用户名(username/login) | |
repo | str | 项目路径(path) | |
access_token | str | 用户授权码 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[UserBasic] get_v5_repos_owner_repo_subscribers(owner, repo, access_token=access_token, page=page, per_page=per_page)
列出 watch 了项目的用户
列出 watch 了项目的用户
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
owner = 'owner_example' # str | 用户名(username/login)
repo = 'repo_example' # str | 项目路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (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)
Name | Type | Description | Notes |
---|---|---|---|
owner | str | 用户名(username/login) | |
repo | str | 项目路径(path) | |
access_token | str | 用户授权码 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Project] get_v5_user_starred(access_token=access_token, sort=sort, direction=direction, page=page, per_page=per_page)
列出授权用户 star 了的项目
列出授权用户 star 了的项目
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
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 | 每页的数量 (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)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | 用户授权码 | [optional] |
sort | str | 根据项目创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 | [optional] [default to created] |
direction | str | 按递增(asc)或递减(desc)排序,默认:递减 | [optional] [default to desc] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_v5_user_starred_owner_repo(owner, repo, access_token=access_token)
检查授权用户是否 star 了一个项目
检查授权用户是否 star 了一个项目
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
owner = 'owner_example' # str | 用户名(username/login)
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)
Name | Type | Description | Notes |
---|---|---|---|
owner | str | 用户名(username/login) | |
repo | str | 项目路径(path) | |
access_token | str | 用户授权码 | [optional] |
void (empty response body)
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Project] get_v5_user_subscriptions(access_token=access_token, sort=sort, direction=direction, page=page, per_page=per_page)
列出授权用户 watch 了的项目
列出授权用户 watch 了的项目
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
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 | 每页的数量 (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)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | 用户授权码 | [optional] |
sort | str | 根据项目创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 | [optional] [default to created] |
direction | str | 按递增(asc)或递减(desc)排序,默认:递减 | [optional] [default to desc] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_v5_user_subscriptions_owner_repo(owner, repo, access_token=access_token)
检查授权用户是否 watch 了一个项目
检查授权用户是否 watch 了一个项目
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
owner = 'owner_example' # str | 用户名(username/login)
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)
Name | Type | Description | Notes |
---|---|---|---|
owner | str | 用户名(username/login) | |
repo | str | 项目路径(path) | |
access_token | str | 用户授权码 | [optional] |
void (empty response body)
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Event] get_v5_users_username_events(username, access_token=access_token, page=page, per_page=per_page)
列出用户的动态
列出用户的动态
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (optional) (default to 20)
try:
# 列出用户的动态
api_response = api_instance.get_v5_users_username_events(username, access_token=access_token, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling ActivityApi->get_v5_users_username_events: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | 用户名(username/login) | |
access_token | str | 用户授权码 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Event] get_v5_users_username_events_orgs_org(username, org, access_token=access_token, page=page, per_page=per_page)
列出用户所属组织的动态
列出用户所属组织的动态
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
username = 'username_example' # str | 用户名(username/login)
org = 'org_example' # str | 组织的路径(path/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (optional) (default to 20)
try:
# 列出用户所属组织的动态
api_response = api_instance.get_v5_users_username_events_orgs_org(username, org, access_token=access_token, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling ActivityApi->get_v5_users_username_events_orgs_org: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | 用户名(username/login) | |
org | str | 组织的路径(path/login) | |
access_token | str | 用户授权码 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Event] get_v5_users_username_events_public(username, access_token=access_token, page=page, per_page=per_page)
列出用户的公开动态
列出用户的公开动态
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (optional) (default to 20)
try:
# 列出用户的公开动态
api_response = api_instance.get_v5_users_username_events_public(username, access_token=access_token, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling ActivityApi->get_v5_users_username_events_public: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | 用户名(username/login) | |
access_token | str | 用户授权码 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Event] get_v5_users_username_received_events(username, access_token=access_token, page=page, per_page=per_page)
列出一个用户收到的动态
列出一个用户收到的动态
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (optional) (default to 20)
try:
# 列出一个用户收到的动态
api_response = api_instance.get_v5_users_username_received_events(username, access_token=access_token, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling ActivityApi->get_v5_users_username_received_events: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | 用户名(username/login) | |
access_token | str | 用户授权码 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Event] get_v5_users_username_received_events_public(username, access_token=access_token, page=page, per_page=per_page)
列出一个用户收到的公开动态
列出一个用户收到的公开动态
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (optional) (default to 20)
try:
# 列出一个用户收到的公开动态
api_response = api_instance.get_v5_users_username_received_events_public(username, access_token=access_token, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling ActivityApi->get_v5_users_username_received_events_public: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | 用户名(username/login) | |
access_token | str | 用户授权码 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Project] get_v5_users_username_starred(username, access_token=access_token, page=page, per_page=per_page, sort=sort, direction=direction)
列出用户 star 了的项目
列出用户 star 了的项目
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (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, page=page, per_page=per_page, sort=sort, direction=direction)
pprint(api_response)
except ApiException as e:
print("Exception when calling ActivityApi->get_v5_users_username_starred: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | 用户名(username/login) | |
access_token | str | 用户授权码 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
sort | str | 根据项目创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 | [optional] [default to created] |
direction | str | 按递增(asc)或递减(desc)排序,默认:递减 | [optional] [default to desc] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Project] get_v5_users_username_subscriptions(username, access_token=access_token, page=page, per_page=per_page, sort=sort, direction=direction)
列出用户 watch 了的项目
列出用户 watch 了的项目
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (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, page=page, per_page=per_page, sort=sort, direction=direction)
pprint(api_response)
except ApiException as e:
print("Exception when calling ActivityApi->get_v5_users_username_subscriptions: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | 用户名(username/login) | |
access_token | str | 用户授权码 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
sort | str | 根据项目创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 | [optional] [default to created] |
direction | str | 按递增(asc)或递减(desc)排序,默认:递减 | [optional] [default to desc] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
patch_v5_notifications_messages_id(id, access_token=access_token)
标记一个私信为已读
标记一个私信为已读
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
id = 56 # int | 私信的 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)
Name | Type | Description | Notes |
---|---|---|---|
id | int | 私信的 ID | |
access_token | str | 用户授权码 | [optional] |
void (empty response body)
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
patch_v5_notifications_threads_id(id, access_token=access_token)
标记一个通知为已读
标记一个通知为已读
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
id = 56 # int | 通知的 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)
Name | Type | Description | Notes |
---|---|---|---|
id | int | 通知的 ID | |
access_token | str | 用户授权码 | [optional] |
void (empty response body)
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
post_v5_notifications_messages(username, content, access_token=access_token)
发送私信给指定用户
发送私信给指定用户
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
username = 'username_example' # str | 用户名(username/login)
content = 'content_example' # str | 私信内容
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 发送私信给指定用户
api_instance.post_v5_notifications_messages(username, content, access_token=access_token)
except ApiException as e:
print("Exception when calling ActivityApi->post_v5_notifications_messages: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | 用户名(username/login) | |
content | str | 私信内容 | |
access_token | str | 用户授权码 | [optional] |
void (empty response body)
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
put_v5_notifications_messages(access_token=access_token)
标记所有私信为已读
标记所有私信为已读
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 标记所有私信为已读
api_instance.put_v5_notifications_messages(access_token=access_token)
except ApiException as e:
print("Exception when calling ActivityApi->put_v5_notifications_messages: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | 用户授权码 | [optional] |
void (empty response body)
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
put_v5_notifications_threads(access_token=access_token)
标记所有通知为已读
标记所有通知为已读
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 标记所有通知为已读
api_instance.put_v5_notifications_threads(access_token=access_token)
except ApiException as e:
print("Exception when calling ActivityApi->put_v5_notifications_threads: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | 用户授权码 | [optional] |
void (empty response body)
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
put_v5_repos_owner_repo_notifications(owner, repo, access_token=access_token)
标记一个项目里的通知为已读
标记一个项目里的通知为已读
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
owner = 'owner_example' # str | 用户名(username/login)
repo = 'repo_example' # str | 项目路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 标记一个项目里的通知为已读
api_instance.put_v5_repos_owner_repo_notifications(owner, repo, access_token=access_token)
except ApiException as e:
print("Exception when calling ActivityApi->put_v5_repos_owner_repo_notifications: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
owner | str | 用户名(username/login) | |
repo | str | 项目路径(path) | |
access_token | str | 用户授权码 | [optional] |
void (empty response body)
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
put_v5_user_starred_owner_repo(owner, repo, access_token=access_token)
star 一个项目
star 一个项目
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
owner = 'owner_example' # str | 用户名(username/login)
repo = 'repo_example' # str | 项目路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# star 一个项目
api_instance.put_v5_user_starred_owner_repo(owner, repo, access_token=access_token)
except ApiException as e:
print("Exception when calling ActivityApi->put_v5_user_starred_owner_repo: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
owner | str | 用户名(username/login) | |
repo | str | 项目路径(path) | |
access_token | str | 用户授权码 | [optional] |
void (empty response body)
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
put_v5_user_subscriptions_owner_repo(owner, repo, access_token=access_token)
watch 一个项目
watch 一个项目
from __future__ import print_function
import time
import gitee_client
from gitee_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = gitee_client.ActivityApi()
owner = 'owner_example' # str | 用户名(username/login)
repo = 'repo_example' # str | 项目路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# watch 一个项目
api_instance.put_v5_user_subscriptions_owner_repo(owner, repo, access_token=access_token)
except ApiException as e:
print("Exception when calling ActivityApi->put_v5_user_subscriptions_owner_repo: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
owner | str | 用户名(username/login) | |
repo | str | 项目路径(path) | |
access_token | str | 用户授权码 | [optional] |
void (empty response body)
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。