4 Star 20 Fork 12

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

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

gitee_client.MiscellaneousApi

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

get_v5_emojis(access_token=access_token)

列出可使用的 Emoji

列出可使用的 Emoji

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.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)

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_gitignore_templates

get_v5_gitignore_templates(access_token=access_token)

列出可使用的 .gitignore 模板

列出可使用的 .gitignore 模板

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.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)

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_gitignore_templates_name

get_v5_gitignore_templates_name(name, access_token=access_token)

获取一个 .gitignore 模板

获取一个 .gitignore 模板

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.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)

Parameters

Name Type Description Notes
name str .gitignore 模板名
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_gitignore_templates_name_raw

get_v5_gitignore_templates_name_raw(name, access_token=access_token)

获取一个 .gitignore 模板原始文件

获取一个 .gitignore 模板原始文件

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.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)

Parameters

Name Type Description Notes
name str .gitignore 模板名
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_licenses

get_v5_licenses(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.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)

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_licenses_license

get_v5_licenses_license(license, 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.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)

Parameters

Name Type Description Notes
license str 协议名称
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_licenses_license_raw

get_v5_licenses_license_raw(license, 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.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)

Parameters

Name Type Description Notes
license str 协议名称
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_repos_owner_repo_license

get_v5_repos_owner_repo_license(owner, repo, 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.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)

Parameters

Name Type Description Notes
owner str 用户名(username/login)
repo str 项目路径(path)
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]

post_v5_markdown

post_v5_markdown(text, access_token=access_token)

渲染 Markdown 文本

渲染 Markdown 文本

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.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)

Parameters

Name Type Description Notes
text str Markdown 文本
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

搜索帮助