Skip to main content

Nomad Pilot

Project description

nomad-pilot-cli

This is the API descriptor for the Nomad Pilot API, responsible for shipping and logistics processing. Developed by Samarkand Global in partnership with SF Express, eSinotrans, sto. Read the documentation online at Nomad API Suite.

  • Install for node with npm install nomad_pilot_cli
  • Install for python with pip install nomad-pilot-cli
  • Install for Maven users groupId, com.gitlab.samarkand-nomad; artifactId, nomad-pilot-cli

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.53.0
  • Package version: 1.53.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_pilot_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_pilot_cli

Getting Started

Please follow the installation procedure and then run the following:

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

configuration = nomad_pilot_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'

# Defining host is optional and default to https://nomad.samarkand-global.cn/pilot
configuration.host = "https://nomad.samarkand-global.cn/pilot"
# Enter a context with an instance of the API client
with nomad_pilot_cli.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = nomad_pilot_cli.BatchApi(api_client)
    carrier = 'carrier_example' # str | The carrier name
batch_id = 'batch_id_example' # str | The batch name returned from the create batch method
inline_object = nomad_pilot_cli.InlineObject() # InlineObject | 

    try:
        # batch
        api_response = api_instance.add_parcel(carrier, batch_id, inline_object)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BatchApi->add_parcel: %s\n" % e)
    

Documentation for API Endpoints

All URIs are relative to https://nomad.samarkand-global.cn/pilot

Class Method HTTP request Description
BatchApi add_parcel POST /ship/{carrier}/batch/{batch_id}/add-to-batch batch
BatchApi create_batch POST /ship/{carrier}/create-batch batch
BatchApi remove_parcel POST /ship/{carrier}/batch/{batch_id}/remove-from-batch batch
BatchApi scan_batch POST /ship/{carrier}/batch/{batch_id}/create-scan-form batch
CallbackApi callback POST /callback/{store} callback
CarriersApi query_carrier GET /carriers/ queryCarrier
FreightForwardApi freight_forward POST /freight-forward/{carrier} freightForward
FreightForwardApi put_freight_forward_product PUT /freight-forward/product/{carrier} freightForward
FreightForwardApi query_freight_forward GET /freight-forward/{carrier} queryFreightForward
InventoryApi get_inventory_product GET /inventory/product/{carrier} inventory
InventoryApi post_inventory_product POST /inventory/product/{carrier} inventory
InventoryApi put_inventory_product PUT /inventory/product/{carrier} inventory
InventoryPurchaseApi delete_inventory_purchase DELETE /inventory/purchase/{carrier} inventory_purchase
InventoryPurchaseApi get_inventory_purchase GET /inventory/purchase/{carrier} inventory_purchase
InventoryPurchaseApi post_inventory_purchase POST /inventory/purchase/{carrier} inventory_purchase
QuickShipApi quick_ship POST /quick-ship/{carrier} quickShip
ShipApi cancel_ship DELETE /ship/{carrier}/order/{seller_order_ref} cancelShip
ShipApi put_ship PUT /ship/{carrier} ship
ShipApi query_ship GET /ship/{carrier}/order/{seller_order_ref} queryShip
ShipApi ship POST /ship/{carrier} ship
ShipConfirmApi ship_confirm POST /ship/{carrier}/confirm shipConfirm

Documentation For Models

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

paul@samarkand.global

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nomad-pilot-cli-1.53.0.tar.gz (104.7 kB view details)

Uploaded Source

File details

Details for the file nomad-pilot-cli-1.53.0.tar.gz.

File metadata

  • Download URL: nomad-pilot-cli-1.53.0.tar.gz
  • Upload date:
  • Size: 104.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.2.0 pkginfo/1.8.3 requests/2.27.1 requests-toolbelt/0.8.0 tqdm/4.64.1 CPython/3.6.8

File hashes

Hashes for nomad-pilot-cli-1.53.0.tar.gz
Algorithm Hash digest
SHA256 363c26f5c331bd8a9df23658be9663e45f4abb40cc40f90602700cdc37a13bb0
MD5 8b258b6742f59b391664b8e21193670a
BLAKE2b-256 aed27e69a29500bb3fbfb3c87e9133936c78229844a259a789cdb7e8a9ae9403

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page