All URIs are relative to https://gitee.com/api
Method | HTTP request | Description |
---|---|---|
get_v5_emojis | GET /v5/emojis | 列出可使用的 Emoji |
get_v5_gitignore_templates | GET /v5/gitignore/templates | 列出可使用的 .gitignore 模板 |
get_v5_gitignore_templates_name | GET /v5/gitignore/templates/{name} | 获取一个 .gitignore 模板 |
get_v5_gitignore_templates_name_raw | GET /v5/gitignore/templates/{name}/raw | 获取一个 .gitignore 模板原始文件 |
get_v5_licenses | GET /v5/licenses | 列出可使用的开源许可协议 |
get_v5_licenses_license | GET /v5/licenses/{license} | 获取一个开源许可协议 |
get_v5_licenses_license_raw | GET /v5/licenses/{license}/raw | 获取一个开源许可协议原始文件 |
get_v5_repos_owner_repo_license | GET /v5/repos/{owner}/{repo}/license | 获取一个项目使用的开源许可协议 |
post_v5_markdown | POST /v5/markdown | 渲染 Markdown 文本 |
get_v5_emojis(access_token=access_token)
列出可使用的 Emoji
列出可使用的 Emoji
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.MiscellaneousApi()
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 列出可使用的 Emoji
api_instance.get_v5_emojis(access_token=access_token)
except ApiException as e:
print("Exception when calling MiscellaneousApi->get_v5_emojis: %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]
get_v5_gitignore_templates(access_token=access_token)
列出可使用的 .gitignore 模板
列出可使用的 .gitignore 模板
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.MiscellaneousApi()
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 列出可使用的 .gitignore 模板
api_instance.get_v5_gitignore_templates(access_token=access_token)
except ApiException as e:
print("Exception when calling MiscellaneousApi->get_v5_gitignore_templates: %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]
get_v5_gitignore_templates_name(name, access_token=access_token)
获取一个 .gitignore 模板
获取一个 .gitignore 模板
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.MiscellaneousApi()
name = 'name_example' # str | .gitignore 模板名
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 获取一个 .gitignore 模板
api_instance.get_v5_gitignore_templates_name(name, access_token=access_token)
except ApiException as e:
print("Exception when calling MiscellaneousApi->get_v5_gitignore_templates_name: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | .gitignore 模板名 | |
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]
get_v5_gitignore_templates_name_raw(name, access_token=access_token)
获取一个 .gitignore 模板原始文件
获取一个 .gitignore 模板原始文件
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.MiscellaneousApi()
name = 'name_example' # str | .gitignore 模板名
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 获取一个 .gitignore 模板原始文件
api_instance.get_v5_gitignore_templates_name_raw(name, access_token=access_token)
except ApiException as e:
print("Exception when calling MiscellaneousApi->get_v5_gitignore_templates_name_raw: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | .gitignore 模板名 | |
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]
get_v5_licenses(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.MiscellaneousApi()
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 列出可使用的开源许可协议
api_instance.get_v5_licenses(access_token=access_token)
except ApiException as e:
print("Exception when calling MiscellaneousApi->get_v5_licenses: %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]
get_v5_licenses_license(license, 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.MiscellaneousApi()
license = 'license_example' # str | 协议名称
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 获取一个开源许可协议
api_instance.get_v5_licenses_license(license, access_token=access_token)
except ApiException as e:
print("Exception when calling MiscellaneousApi->get_v5_licenses_license: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
license | 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]
get_v5_licenses_license_raw(license, 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.MiscellaneousApi()
license = 'license_example' # str | 协议名称
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 获取一个开源许可协议原始文件
api_instance.get_v5_licenses_license_raw(license, access_token=access_token)
except ApiException as e:
print("Exception when calling MiscellaneousApi->get_v5_licenses_license_raw: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
license | 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]
get_v5_repos_owner_repo_license(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.MiscellaneousApi()
owner = 'owner_example' # str | 用户名(username/login)
repo = 'repo_example' # str | 项目路径(path)
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 获取一个项目使用的开源许可协议
api_instance.get_v5_repos_owner_repo_license(owner, repo, access_token=access_token)
except ApiException as e:
print("Exception when calling MiscellaneousApi->get_v5_repos_owner_repo_license: %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]
post_v5_markdown(text, access_token=access_token)
渲染 Markdown 文本
渲染 Markdown 文本
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.MiscellaneousApi()
text = 'text_example' # str | Markdown 文本
access_token = 'access_token_example' # str | 用户授权码 (optional)
try:
# 渲染 Markdown 文本
api_instance.post_v5_markdown(text, access_token=access_token)
except ApiException as e:
print("Exception when calling MiscellaneousApi->post_v5_markdown: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
text | str | Markdown 文本 | |
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]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。