nomad-envoy-cli
This is the API descriptor for the Nomad Envoy API, responsible for order operation and product lists. Developed by Samarkand Global in partnership with Youzan, LittleRED, PDD, etc. Read the documentation online at Nomad API Suite.
- Install for node with
npm install nomad_envoy_cli - Install for python with
pip install nomad-envoy-cli
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.58.0
- Package version: 1.58.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 2.7 and 3.4+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
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 nomad_envoy_cli
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 nomad_envoy_cli
Getting Started
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import nomad_envoy_cli
from nomad_envoy_cli.rest import ApiException
from pprint import pprint
configuration = nomad_envoy_cli.Configuration()
# Configure API key authorization: ca_key
configuration.api_key['x-ca-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-ca-key'] = 'Bearer'
configuration = nomad_envoy_cli.Configuration()
# Configure API key authorization: ca_stage
configuration.api_key['x-ca-stage'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-ca-stage'] = 'Bearer'
# Defining host is optional and default to https://nomad.samarkand-global.cn/envoy
configuration.host = "https://nomad.samarkand-global.cn/envoy"
# Enter a context with an instance of the API client
with nomad_envoy_cli.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = nomad_envoy_cli.CustomsApi(api_client)
region = 'region_example' # str | The region of the customs. e.g. shanghai
order = nomad_envoy_cli.Order() # Order | Order detail
try:
# postCustomsOrder
api_response = api_instance.post_customs_order(region, order)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomsApi->post_customs_order: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://nomad.samarkand-global.cn/envoy
| Class | Method | HTTP request | Description |
|---|---|---|---|
| CustomsApi | post_customs_order | POST /customs/{region}/order | postCustomsOrder |
| CustomsApi | post_customs_payment | POST /customs/{region}/payment | postCustomsPayment |
| CustomsApi | post_customs_product | POST /customs/{region}/product | postCustomsProduct |
| CustomsApi | put_customs_order | PUT /customs/{region}/order | putCustomsOrder |
| CustomsCallbackApi | post_customs_callback | POST /customs/{store} | postCustomsCallback |
| OrderApi | add_order | POST /order/{store} | addOrder |
| OrderApi | cancel_order | DELETE /order/{store} | cancelOrder |
| OrderApi | get_order_by_field | GET /order/{store} | getOrderByField |
| OrderApi | update_order | PUT /order/{store} | updateOrder |
| ProductApi | add_product | POST /product/{store} | addProduct |
| ProductApi | delete_product | DELETE /product/{store} | deleteProduct |
| ProductApi | get_products_by_field | GET /product/{store} | getProductsByField |
| ProductApi | update_product | PUT /product/{store} | updateProduct |
| StoreApi | create_store_inventory | POST /stores/{store_id}/inventory | createStoreInventory |
| StoreApi | post_store | POST /stores/ | postStore |
| StoreApi | query_store | GET /stores/ | queryStore |
| StoreApi | query_store_inventory | GET /stores/{store_id}/inventory | queryStoreInventory |
| StoreApi | update_store_inventory | PUT /stores/{store_id}/inventory | updateStoreInventory |
Documentation For Models
- Address
- ApiResponse
- ApiResponseConnectorResponse
- ApiResponseData
- ApiResponseDataRequired
- ApiResponseGeneral
- ApiResponseInventory
- ApiResponseRequired
- BaseApiResponse
- BaseApiResponseData
- CustomsDeclarationResult
- Gender
- Images
- Inventory
- Order
- OrderApiResponse
- OrderApiResponseData
- OrderApiResponseDataRequired
- OrderApiResponseRequired
- OrderProduct
- Product
- ProductApiResponse
- ProductApiResponseData
- ProductApiResponseRequired
- ProductComponent
- ProductResponseDataRequired
- ProductSku
- Store
Documentation For Authorization
ca_key
- Type: API key
- API key parameter name: x-ca-key
- Location: HTTP header
ca_stage
- Type: API key
- API key parameter name: x-ca-stage
- Location: HTTP header
Author
Metadata
Release files for nomad-envoy-cli 1.58.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nomad-envoy-cli-1.58.0.tar.gz | 68.3 kB | Without provenance | Details for nomad-envoy-cli-1.58.0.tar.gz |
Release files / nomad-envoy-cli-1.58.0.tar.gz
| Download URL | nomad-envoy-cli-1.58.0.tar.gz |
|---|---|
| Size | 68.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdcb1f1b5f1b3354bb3f57d931c2da67a3d5f0cf37c9074548494970b342761d
|
|
BLAKE2b-256 checksum How to use checksums |
3f38bcc87c1d00d2ebef276f16cd5595a9e92d8a88faca051652945bec734f7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.9.6 requests/2.25.1 requests-toolbelt/1.0.0 tqdm/4.66.1 CPython/3.10.6
|
Security for nomad-envoy-cli 1.58.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.