All URIs are relative to https://gitee.com/api
Method | HTTP request | Description |
---|---|---|
delete_v5_orgs_org_memberships_username | DELETE /v5/orgs/{org}/memberships/{username} | 移除授权用户所管理组织中的成员 |
delete_v5_user_memberships_orgs_org | DELETE /v5/user/memberships/orgs/{org} | 退出一个组织 |
get_v5_orgs_org | GET /v5/orgs/{org} | 获取一个组织 |
get_v5_orgs_org_members | GET /v5/orgs/{org}/members | 列出一个组织的所有成员 |
get_v5_orgs_org_memberships_username | GET /v5/orgs/{org}/memberships/{username} | 获取授权用户所属组织的一个成员 |
get_v5_user_memberships_orgs | GET /v5/user/memberships/orgs | 列出授权用户在所属组织的成员资料 |
get_v5_user_memberships_orgs_org | GET /v5/user/memberships/orgs/{org} | 获取授权用户在一个组织的成员资料 |
get_v5_user_orgs | GET /v5/user/orgs | 列出授权用户所属的组织 |
get_v5_users_username_orgs | GET /v5/users/{username}/orgs | 列出用户所属的组织 |
patch_v5_orgs_org | PATCH /v5/orgs/{org} | 更新授权用户所管理的组织资料 |
patch_v5_user_memberships_orgs_org | PATCH /v5/user/memberships/orgs/{org} | 更新授权用户在一个组织的成员资料 |
put_v5_orgs_org_memberships_username | PUT /v5/orgs/{org}/memberships/{username} | 增加或更新授权用户所管理组织的成员 |
delete_v5_orgs_org_memberships_username(org, 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.OrganizationsApi()
org = 'org_example' # str | 组织的路径(path/login)
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 移除授权用户所管理组织中的成员
api_instance.delete_v5_orgs_org_memberships_username(org, username, access_token=access_token)
except ApiException as e:
print("Exception when calling OrganizationsApi->delete_v5_orgs_org_memberships_username: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | 组织的路径(path/login) | |
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_memberships_orgs_org(org, 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.OrganizationsApi()
org = 'org_example' # str | 组织的路径(path/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 退出一个组织
api_instance.delete_v5_user_memberships_orgs_org(org, access_token=access_token)
except ApiException as e:
print("Exception when calling OrganizationsApi->delete_v5_user_memberships_orgs_org: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | 组织的路径(path/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]
Group get_v5_orgs_org(org, 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.OrganizationsApi()
org = 'org_example' # str | 组织的路径(path/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 获取一个组织
api_response = api_instance.get_v5_orgs_org(org, access_token=access_token)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrganizationsApi->get_v5_orgs_org: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | 组织的路径(path/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_orgs_org_members(org, access_token=access_token, page=page, per_page=per_page, role=role)
列出一个组织的所有成员
列出一个组织的所有成员
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.OrganizationsApi()
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)
role = 'all' # str | 根据角色筛选成员 (optional) (default to all)
try:
# 列出一个组织的所有成员
api_response = api_instance.get_v5_orgs_org_members(org, access_token=access_token, page=page, per_page=per_page, role=role)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrganizationsApi->get_v5_orgs_org_members: %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] |
role | str | 根据角色筛选成员 | [optional] [default to all] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GroupMember get_v5_orgs_org_memberships_username(org, 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.OrganizationsApi()
org = 'org_example' # str | 组织的路径(path/login)
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 获取授权用户所属组织的一个成员
api_response = api_instance.get_v5_orgs_org_memberships_username(org, username, access_token=access_token)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrganizationsApi->get_v5_orgs_org_memberships_username: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | 组织的路径(path/login) | |
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[GroupMember] get_v5_user_memberships_orgs(access_token=access_token, active=active, 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.OrganizationsApi()
access_token = 'access_token_example' # str | 用户授权码 (optional)
active = true # bool | 根据成员是否已激活进行筛选资料,缺省返回所有资料 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (optional) (default to 20)
try:
# 列出授权用户在所属组织的成员资料
api_response = api_instance.get_v5_user_memberships_orgs(access_token=access_token, active=active, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrganizationsApi->get_v5_user_memberships_orgs: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | 用户授权码 | [optional] |
active | bool | 根据成员是否已激活进行筛选资料,缺省返回所有资料 | [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]
GroupMember get_v5_user_memberships_orgs_org(org, 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.OrganizationsApi()
org = 'org_example' # str | 组织的路径(path/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 获取授权用户在一个组织的成员资料
api_response = api_instance.get_v5_user_memberships_orgs_org(org, access_token=access_token)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrganizationsApi->get_v5_user_memberships_orgs_org: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | 组织的路径(path/login) | |
access_token | str | 用户授权码 | [optional] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Group] get_v5_user_orgs(access_token=access_token, page=page, per_page=per_page, admin=admin)
列出授权用户所属的组织
列出授权用户所属的组织
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.OrganizationsApi()
access_token = 'access_token_example' # str | 用户授权码 (optional)
page = 1 # int | 当前的页码 (optional) (default to 1)
per_page = 20 # int | 每页的数量 (optional) (default to 20)
admin = true # bool | 只列出授权用户管理的组织 (optional)
try:
# 列出授权用户所属的组织
api_response = api_instance.get_v5_user_orgs(access_token=access_token, page=page, per_page=per_page, admin=admin)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrganizationsApi->get_v5_user_orgs: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | 用户授权码 | [optional] |
page | int | 当前的页码 | [optional] [default to 1] |
per_page | int | 每页的数量 | [optional] [default to 20] |
admin | bool | 只列出授权用户管理的组织 | [optional] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Group] get_v5_users_username_orgs(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.OrganizationsApi()
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_orgs(username, access_token=access_token, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrganizationsApi->get_v5_users_username_orgs: %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]
GroupDetail patch_v5_orgs_org(org, access_token=access_token, email=email, location=location, name=name, description=description, html_url=html_url)
更新授权用户所管理的组织资料
更新授权用户所管理的组织资料
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.OrganizationsApi()
org = 'org_example' # str | 组织的路径(path/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
email = 'email_example' # str | 组织公开的邮箱地址 (optional)
location = 'location_example' # str | 组织所在地 (optional)
name = 'name_example' # str | 组织名称 (optional)
description = 'description_example' # str | 组织简介 (optional)
html_url = 'html_url_example' # str | 组织站点 (optional)
try:
# 更新授权用户所管理的组织资料
api_response = api_instance.patch_v5_orgs_org(org, access_token=access_token, email=email, location=location, name=name, description=description, html_url=html_url)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrganizationsApi->patch_v5_orgs_org: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | 组织的路径(path/login) | |
access_token | str | 用户授权码 | [optional] |
str | 组织公开的邮箱地址 | [optional] | |
location | str | 组织所在地 | [optional] |
name | str | 组织名称 | [optional] |
description | str | 组织简介 | [optional] |
html_url | str | 组织站点 | [optional] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GroupMember patch_v5_user_memberships_orgs_org(org, access_token=access_token, remark=remark)
更新授权用户在一个组织的成员资料
更新授权用户在一个组织的成员资料
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.OrganizationsApi()
org = 'org_example' # str | 组织的路径(path/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
remark = 'remark_example' # str | 在组织中的备注信息 (optional)
try:
# 更新授权用户在一个组织的成员资料
api_response = api_instance.patch_v5_user_memberships_orgs_org(org, access_token=access_token, remark=remark)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrganizationsApi->patch_v5_user_memberships_orgs_org: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | 组织的路径(path/login) | |
access_token | str | 用户授权码 | [optional] |
remark | str | 在组织中的备注信息 | [optional] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GroupMember put_v5_orgs_org_memberships_username(org, username, access_token=access_token, role=role)
增加或更新授权用户所管理组织的成员
增加或更新授权用户所管理组织的成员
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.OrganizationsApi()
org = 'org_example' # str | 组织的路径(path/login)
username = 'username_example' # str | 用户名(username/login)
access_token = 'access_token_example' # str | 用户授权码 (optional)
role = 'member' # str | 设置用户在组织的角色 (optional) (default to member)
try:
# 增加或更新授权用户所管理组织的成员
api_response = api_instance.put_v5_orgs_org_memberships_username(org, username, access_token=access_token, role=role)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrganizationsApi->put_v5_orgs_org_memberships_username: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | 组织的路径(path/login) | |
username | str | 用户名(username/login) | |
access_token | str | 用户授权码 | [optional] |
role | str | 设置用户在组织的角色 | [optional] [default to member] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。