1 Star 0 Fork 0

好雨科技 / market-api-python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

rainbond-market-client

the purpose of this application is to provide an application that is using plain go code to define an API This should demonstrate all the possible comment annotations that are available to turn go code into a fully compliant swagger 2.0 spec

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 0.0.1
  • Package version: 0.0.4
  • Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit https://www.rainbond.com

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import market_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import market_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import market_client
from market_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: enterprise_key
configuration = market_client.Configuration()
configuration.api_key['X_ENTERPRISE_ID'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X_ENTERPRISE_ID'] = 'Bearer'
# Configure API key authorization: token_key
configuration = market_client.Configuration()
configuration.api_key['X_ENTERPRISE_TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X_ENTERPRISE_TOKEN'] = 'Bearer'

# create an instance of the API class
api_instance = market_client.AppsApi(market_client.ApiClient(configuration))
market_id = 'market_id_example' # str | market id
data = market_client.PostAPPTemplete() # PostAPPTemplete |  (optional)

try:
    api_response = api_instance.create_app(market_id, data=data)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AppsApi->create_app: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
AppsApi create_app POST /openapi/v2/markets/{marketID}/apps
AppsApi create_app_version POST /openapi/v2/markets/{marketID}/apps/{appID}/versions
AppsApi download_app_by_order GET /openapi/v2/orders/{orderID}/downloadapp
AppsApi get_app_version GET /openapi/v2/markets/{marketID}/apps/{appID}/versions/{versionID}
AppsApi get_app_versions GET /openapi/v2/markets/{marketID}/apps/{appID}/versions
AppsApi get_app_with_version GET /openapi/v2/markets/{marketID}/apps/{appID}
AppsApi get_apps_with_version GET /openapi/v2/markets/{marketID}/apps
AppsApi get_market GET /openapi/v2/markets/{marketID}
AppsApi get_markets GET /openapi/v2/markets
AppsApi get_recommended_app_list GET /openapi/v2/recommended/apps get recommended app list
OrdersApi get_order_request GET /openapi/v2/orders/{orderID} get order infos

Documentation For Models

Documentation For Authorization

enterprise_key

  • Type: API key
  • API key parameter name: X_ENTERPRISE_ID
  • Location: HTTP header

token_key

  • Type: API key
  • API key parameter name: X_ENTERPRISE_TOKEN
  • Location: HTTP header

Author

576501057@qq.com

空文件

简介

暂无描述 展开 收起
Python
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/rainbond/market-api-python.git
git@gitee.com:rainbond/market-api-python.git
rainbond
market-api-python
market-api-python
master

搜索帮助