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:
Python 2.7 and 3.4+
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
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
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)
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 |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。