All URIs are relative to https://gitee.com/api
Method | HTTP request | Description |
---|---|---|
delete_v5_user_following_username | DELETE /v5/user/following/{username} | 取消关注一个用户 |
delete_v5_user_keys_id | DELETE /v5/user/keys/{id} | 删除一个公钥 |
delete_v5_user_unconfirmed_email | DELETE /v5/user/unconfirmed_email | 删除授权用户未激活的邮箱地址 |
get_v5_user | GET /v5/user | 获取授权用户的资料 |
get_v5_user_address | GET /v5/user/address | 获取授权用户的地理信息 |
get_v5_user_emails | GET /v5/user/emails | 获取授权用户的邮箱地址 |
get_v5_user_followers | GET /v5/user/followers | 列出授权用户的关注者 |
get_v5_user_following | GET /v5/user/following | 列出授权用户正关注的用户 |
get_v5_user_following_username | GET /v5/user/following/{username} | 检查授权用户是否关注了一个用户 |
get_v5_user_keys | GET /v5/user/keys | 列出授权用户的所有公钥 |
get_v5_user_keys_id | GET /v5/user/keys/{id} | 获取一个公钥 |
get_v5_users_username | GET /v5/users/{username} | 获取一个用户 |
get_v5_users_username_followers | GET /v5/users/{username}/followers | 列出指定用户的关注者 |
get_v5_users_username_following | GET /v5/users/{username}/following | 列出指定用户正在关注的用户 |
get_v5_users_username_following_target_user | GET /v5/users/{username}/following/{target_user} | 检查指定用户是否关注目标用户 |
get_v5_users_username_keys | GET /v5/users/{username}/keys | 列出指定用户的所有公钥 |
patch_v5_user | PATCH /v5/user | 更新授权用户的资料 |
patch_v5_user_address | PATCH /v5/user/address | 更新授权用户的地理信息 |
post_v5_user_emails | POST /v5/user/emails | 添加授权用户的新邮箱地址 |
post_v5_user_keys | POST /v5/user/keys | 添加一个公钥 |
put_v5_user_following_username | PUT /v5/user/following/{username} | 关注一个用户 |
delete_v5_user_following_username(username, 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.UsersApi()
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 取消关注一个用户
api_instance.delete_v5_user_following_username(username, access_token=access_token)
except ApiException as e:
print("Exception when calling UsersApi->delete_v5_user_following_username: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | 用户名(username/login) | |
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_keys_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.UsersApi()
id = 56 # int | 公钥 ID
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 删除一个公钥
api_instance.delete_v5_user_keys_id(id, access_token=access_token)
except ApiException as e:
print("Exception when calling UsersApi->delete_v5_user_keys_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]
delete_v5_user_unconfirmed_email(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.UsersApi()
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 删除授权用户未激活的邮箱地址
api_instance.delete_v5_user_unconfirmed_email(access_token=access_token)
except ApiException as e:
print("Exception when calling UsersApi->delete_v5_user_unconfirmed_email: %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]
UserDetail get_v5_user(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.UsersApi()
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 获取授权用户的资料
api_response = api_instance.get_v5_user(access_token=access_token)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_v5_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | 用户授权码 | [optional] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserAddress get_v5_user_address(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.UsersApi()
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 获取授权用户的地理信息
api_response = api_instance.get_v5_user_address(access_token=access_token)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_v5_user_address: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | 用户授权码 | [optional] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserEmail get_v5_user_emails(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.UsersApi()
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 获取授权用户的邮箱地址
api_response = api_instance.get_v5_user_emails(access_token=access_token)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_v5_user_emails: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | 用户授权码 | [optional] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[UserBasic] get_v5_user_followers(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.UsersApi()
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_user_followers(access_token=access_token, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_v5_user_followers: %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[UserBasic] get_v5_user_following(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.UsersApi()
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_user_following(access_token=access_token, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_v5_user_following: %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]
get_v5_user_following_username(username, 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.UsersApi()
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 检查授权用户是否关注了一个用户
api_instance.get_v5_user_following_username(username, access_token=access_token)
except ApiException as e:
print("Exception when calling UsersApi->get_v5_user_following_username: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | 用户名(username/login) | |
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[SSHKey] get_v5_user_keys(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.UsersApi()
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_user_keys(access_token=access_token, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_v5_user_keys: %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]
SSHKey get_v5_user_keys_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.UsersApi()
id = 56 # int | 公钥 ID
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 获取一个公钥
api_response = api_instance.get_v5_user_keys_id(id, access_token=access_token)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_v5_user_keys_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]
User get_v5_users_username(username, 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.UsersApi()
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 获取一个用户
api_response = api_instance.get_v5_users_username(username, access_token=access_token)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_v5_users_username: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | 用户名(username/login) | |
access_token | str | 用户授权码 | [optional] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[UserBasic] get_v5_users_username_followers(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.UsersApi()
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_followers(username, access_token=access_token, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_v5_users_username_followers: %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[UserBasic] get_v5_users_username_following(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.UsersApi()
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_following(username, access_token=access_token, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_v5_users_username_following: %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]
get_v5_users_username_following_target_user(username, target_user, 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.UsersApi()
username = 'username_example' # str | 用户名(username/login)
target_user = 'target_user_example' # str | 目标用户的用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 检查指定用户是否关注目标用户
api_instance.get_v5_users_username_following_target_user(username, target_user, access_token=access_token)
except ApiException as e:
print("Exception when calling UsersApi->get_v5_users_username_following_target_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | 用户名(username/login) | |
target_user | str | 目标用户的用户名(username/login) | |
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[SSHKeyBasic] get_v5_users_username_keys(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.UsersApi()
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_keys(username, access_token=access_token, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_v5_users_username_keys: %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]
UserDetail patch_v5_user(access_token=access_token, name=name, blog=blog, weibo=weibo, bio=bio)
更新授权用户的资料
更新授权用户的资料
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.UsersApi()
access_token = 'access_token_example' # str | 用户授权码 (optional)
name = 'name_example' # str | 昵称 (optional)
blog = 'blog_example' # str | 微博链接 (optional)
weibo = 'weibo_example' # str | 博客站点 (optional)
bio = 'bio_example' # str | 自我介绍 (optional)
try:
# 更新授权用户的资料
api_response = api_instance.patch_v5_user(access_token=access_token, name=name, blog=blog, weibo=weibo, bio=bio)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->patch_v5_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | 用户授权码 | [optional] |
name | str | 昵称 | [optional] |
blog | str | 微博链接 | [optional] |
str | 博客站点 | [optional] | |
bio | str | 自我介绍 | [optional] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserDetail patch_v5_user_address(access_token=access_token, name=name, tel=tel, address=address, province=province, city=city, zip_code=zip_code, comment=comment)
更新授权用户的地理信息
更新授权用户的地理信息
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.UsersApi()
access_token = 'access_token_example' # str | 用户授权码 (optional)
name = 'name_example' # str | 联系人名 (optional)
tel = 'tel_example' # str | 联系电话 (optional)
address = 'address_example' # str | 联系地址 (optional)
province = 'province_example' # str | 省份 (optional)
city = 'city_example' # str | 城市 (optional)
zip_code = 'zip_code_example' # str | 邮政编码 (optional)
comment = 'comment_example' # str | 备注 (optional)
try:
# 更新授权用户的地理信息
api_response = api_instance.patch_v5_user_address(access_token=access_token, name=name, tel=tel, address=address, province=province, city=city, zip_code=zip_code, comment=comment)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->patch_v5_user_address: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | 用户授权码 | [optional] |
name | str | 联系人名 | [optional] |
tel | str | 联系电话 | [optional] |
address | str | 联系地址 | [optional] |
province | str | 省份 | [optional] |
city | str | 城市 | [optional] |
zip_code | str | 邮政编码 | [optional] |
comment | str | 备注 | [optional] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserEmail post_v5_user_emails(email, 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.UsersApi()
email = 'email_example' # str | 新的邮箱地址
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 添加授权用户的新邮箱地址
api_response = api_instance.post_v5_user_emails(email, access_token=access_token)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->post_v5_user_emails: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
str | 新的邮箱地址 | ||
access_token | str | 用户授权码 | [optional] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SSHKey post_v5_user_keys(key, title, 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.UsersApi()
key = 'key_example' # str | 公钥内容.
title = 'title_example' # str | 公钥名称
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 添加一个公钥
api_response = api_instance.post_v5_user_keys(key, title, access_token=access_token)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->post_v5_user_keys: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
key | str | 公钥内容. | |
title | str | 公钥名称 | |
access_token | str | 用户授权码 | [optional] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
put_v5_user_following_username(username, 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.UsersApi()
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 关注一个用户
api_instance.put_v5_user_following_username(username, access_token=access_token)
except ApiException as e:
print("Exception when calling UsersApi->put_v5_user_following_username: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | 用户名(username/login) | |
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]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。