4 Star 20 Fork 12

还是相信爱过 / gitee-python-client

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
UsersApi.md 33.77 KB
一键复制 编辑 原始数据 按行查看 历史
还是相信爱过 提交于 2017-11-14 22:10 . init

gitee_client.UsersApi

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

delete_v5_user_following_username(username, access_token=access_token)

取消关注一个用户

取消关注一个用户

Example

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)

Parameters

Name Type Description Notes
username str 用户名(username/login)
access_token str 用户授权码 [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_v5_user_keys_id

delete_v5_user_keys_id(id, access_token=access_token)

删除一个公钥

删除一个公钥

Example

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)

Parameters

Name Type Description Notes
id int 公钥 ID
access_token str 用户授权码 [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_v5_user_unconfirmed_email

delete_v5_user_unconfirmed_email(access_token=access_token)

删除授权用户未激活的邮箱地址

删除授权用户未激活的邮箱地址

Example

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)

Parameters

Name Type Description Notes
access_token str 用户授权码 [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_v5_user

UserDetail get_v5_user(access_token=access_token)

获取授权用户的资料

获取授权用户的资料

Example

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)

Parameters

Name Type Description Notes
access_token str 用户授权码 [optional]

Return type

UserDetail

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_v5_user_address

UserAddress get_v5_user_address(access_token=access_token)

获取授权用户的地理信息

获取授权用户的地理信息

Example

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)

Parameters

Name Type Description Notes
access_token str 用户授权码 [optional]

Return type

UserAddress

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_v5_user_emails

UserEmail get_v5_user_emails(access_token=access_token)

获取授权用户的邮箱地址

获取授权用户的邮箱地址

Example

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)

Parameters

Name Type Description Notes
access_token str 用户授权码 [optional]

Return type

UserEmail

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_v5_user_followers

list[UserBasic] get_v5_user_followers(access_token=access_token, page=page, per_page=per_page)

列出授权用户的关注者

列出授权用户的关注者

Example

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)

Parameters

Name Type Description Notes
access_token str 用户授权码 [optional]
page int 当前的页码 [optional] [default to 1]
per_page int 每页的数量 [optional] [default to 20]

Return type

list[UserBasic]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_v5_user_following

list[UserBasic] get_v5_user_following(access_token=access_token, page=page, per_page=per_page)

列出授权用户正关注的用户

列出授权用户正关注的用户

Example

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)

Parameters

Name Type Description Notes
access_token str 用户授权码 [optional]
page int 当前的页码 [optional] [default to 1]
per_page int 每页的数量 [optional] [default to 20]

Return type

list[UserBasic]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_v5_user_following_username

get_v5_user_following_username(username, access_token=access_token)

检查授权用户是否关注了一个用户

检查授权用户是否关注了一个用户

Example

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)

Parameters

Name Type Description Notes
username str 用户名(username/login)
access_token str 用户授权码 [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_v5_user_keys

list[SSHKey] get_v5_user_keys(access_token=access_token, page=page, per_page=per_page)

列出授权用户的所有公钥

列出授权用户的所有公钥

Example

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)

Parameters

Name Type Description Notes
access_token str 用户授权码 [optional]
page int 当前的页码 [optional] [default to 1]
per_page int 每页的数量 [optional] [default to 20]

Return type

list[SSHKey]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_v5_user_keys_id

SSHKey get_v5_user_keys_id(id, access_token=access_token)

获取一个公钥

获取一个公钥

Example

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)

Parameters

Name Type Description Notes
id int 公钥 ID
access_token str 用户授权码 [optional]

Return type

SSHKey

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_v5_users_username

User get_v5_users_username(username, access_token=access_token)

获取一个用户

获取一个用户

Example

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)

Parameters

Name Type Description Notes
username str 用户名(username/login)
access_token str 用户授权码 [optional]

Return type

User

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_v5_users_username_followers

list[UserBasic] get_v5_users_username_followers(username, access_token=access_token, page=page, per_page=per_page)

列出指定用户的关注者

列出指定用户的关注者

Example

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)

Parameters

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]

Return type

list[UserBasic]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_v5_users_username_following

list[UserBasic] get_v5_users_username_following(username, access_token=access_token, page=page, per_page=per_page)

列出指定用户正在关注的用户

列出指定用户正在关注的用户

Example

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)

Parameters

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]

Return type

list[UserBasic]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_v5_users_username_following_target_user

get_v5_users_username_following_target_user(username, target_user, access_token=access_token)

检查指定用户是否关注目标用户

检查指定用户是否关注目标用户

Example

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)

Parameters

Name Type Description Notes
username str 用户名(username/login)
target_user str 目标用户的用户名(username/login)
access_token str 用户授权码 [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_v5_users_username_keys

list[SSHKeyBasic] get_v5_users_username_keys(username, access_token=access_token, page=page, per_page=per_page)

列出指定用户的所有公钥

列出指定用户的所有公钥

Example

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)

Parameters

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]

Return type

list[SSHKeyBasic]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

patch_v5_user

UserDetail patch_v5_user(access_token=access_token, name=name, blog=blog, weibo=weibo, bio=bio)

更新授权用户的资料

更新授权用户的资料

Example

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)

Parameters

Name Type Description Notes
access_token str 用户授权码 [optional]
name str 昵称 [optional]
blog str 微博链接 [optional]
weibo str 博客站点 [optional]
bio str 自我介绍 [optional]

Return type

UserDetail

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

patch_v5_user_address

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)

更新授权用户的地理信息

更新授权用户的地理信息

Example

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)

Parameters

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]

Return type

UserDetail

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

post_v5_user_emails

UserEmail post_v5_user_emails(email, access_token=access_token)

添加授权用户的新邮箱地址

添加授权用户的新邮箱地址

Example

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)

Parameters

Name Type Description Notes
email str 新的邮箱地址
access_token str 用户授权码 [optional]

Return type

UserEmail

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

post_v5_user_keys

SSHKey post_v5_user_keys(key, title, access_token=access_token)

添加一个公钥

添加一个公钥

Example

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)

Parameters

Name Type Description Notes
key str 公钥内容.
title str 公钥名称
access_token str 用户授权码 [optional]

Return type

SSHKey

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

put_v5_user_following_username

put_v5_user_following_username(username, access_token=access_token)

关注一个用户

关注一个用户

Example

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)

Parameters

Name Type Description Notes
username str 用户名(username/login)
access_token str 用户授权码 [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

Python
1
https://gitee.com/wuyu15255872976/gitee-python-client.git
git@gitee.com:wuyu15255872976/gitee-python-client.git
wuyu15255872976
gitee-python-client
gitee-python-client
master

搜索帮助