Package: nomad-envoy-cli
nomad-envoy-cliThis is the API descriptor for the Nomad Envoy API, responsible for order operation and product lists. Developed bySamarkand Globalin partnership withYouzan,LittleRED,PDD, etc. Read the documentation online atNomad API Suite.Install for node withnpm install nomad_envoy_cliInstall for python withpip install nomad-envoy-cliThis Python package is automatically generated by theOpenAPI Generatorproject:API version: 1.57.0Package version: 1.57.0Build package: org.openapitools.codegen.languages.PythonClientCodegenRequirements.Python 2.7 and 3.4+Installation & Usagepip installIf the python package is hosted on a repository, you can install directly using:pipinstallgit+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)Then import the package:importnomad_envoy_cliSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importnomad_envoy_cliGetting StartedPlease follow theinstallation procedureand then run the following:from__future__importprint_functionimporttimeimportnomad_envoy_clifromnomad_envoy_cli.restimportApiExceptionfrompprintimportpprintconfiguration=nomad_envoy_cli.Configuration()# Configure API key authorization: ca_keyconfiguration.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_stageconfiguration.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/envoyconfiguration.host="https://nomad.samarkand-global.cn/envoy"# Enter a context with an instance of the API clientwithnomad_envoy_cli.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=nomad_envoy_cli.CustomsApi(api_client)region='region_example'# str | The region of the customs. e.g. shanghaiorder=nomad_envoy_cli.Order()# Order | Order detailtry:# postCustomsOrderapi_response=api_instance.post_customs_order(region,order)pprint(api_response)exceptApiExceptionase:print("Exception when calling CustomsApi->post_customs_order:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://nomad.samarkand-global.cn/envoyClassMethodHTTP requestDescriptionCustomsApipost_customs_orderPOST/customs/{region}/orderpostCustomsOrderCustomsApipost_customs_paymentPOST/customs/{region}/paymentpostCustomsPaymentCustomsApipost_customs_productPOST/customs/{region}/productpostCustomsProductCustomsApiput_customs_orderPUT/customs/{region}/orderputCustomsOrderCustomsCallbackApipost_customs_callbackPOST/customs/{store}postCustomsCallbackOrderApiadd_orderPOST/order/{store}addOrderOrderApicancel_orderDELETE/order/{store}cancelOrderOrderApiget_order_by_fieldGET/order/{store}getOrderByFieldOrderApiupdate_orderPUT/order/{store}updateOrderProductApiadd_productPOST/product/{store}addProductProductApidelete_productDELETE/product/{store}deleteProductProductApiget_products_by_fieldGET/product/{store}getProductsByFieldProductApiupdate_productPUT/product/{store}updateProductStoreApicreate_store_inventoryPOST/stores/{store_id}/inventorycreateStoreInventoryStoreApipost_storePOST/stores/postStoreStoreApiquery_storeGET/stores/queryStoreStoreApiquery_store_inventoryGET/stores/{store_id}/inventoryqueryStoreInventoryStoreApiupdate_store_inventoryPUT/stores/{store_id}/inventoryupdateStoreInventoryDocumentation For ModelsAddressApiResponseApiResponseConnectorResponseApiResponseDataApiResponseDataRequiredApiResponseGeneralApiResponseInventoryApiResponseRequiredBaseApiResponseBaseApiResponseDataCustomsDeclarationResultGenderImagesInventoryOrderOrderApiResponseOrderApiResponseDataOrderApiResponseDataRequiredOrderApiResponseRequiredOrderProductProductProductApiResponseProductApiResponseDataProductApiResponseRequiredProductResponseDataRequiredProductSkuStoreDocumentation For Authorizationca_keyType: API keyAPI key parameter name: x-ca-keyLocation: HTTP headerca_stageType: API keyAPI key parameter name: x-ca-stageLocation: HTTP headerAuthorpaul@samarkand.global