3PL REST API Client
Project description
A Python wrapper for the 3PL Central REST API
Usage
set up a .env file in the root of the project:
BASE_URL="https://secure-wms.com"
AUTH_PATH="AuthServer/api/Token"
CLIENT_ID="your-id"
CLIENT_SECRET="your-secret"
FACILITY_ID=99
TPL_KEY="your-tpl-key"
GRANT_TYPE="client_credentials"
USER_LOGIN_ID="name-this-whatever-you-want"
ROUTING_INFO_ACCOUNT_NUMBER="ups-account-number"
Verify that you can access the api by running
python3 -m verify_credentials
Then, run the following get a list of methods you can try out, with a handy run-in-place CLI:
python3 -m examples
Which endpoint do you want to try?
1) cancel_test_order
2) create_test_item
3) create_test_order
4) get_carriers_list
5) get_order
Enter a number:
License
MIT
See LICENSE for more details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tplcentral-0.1.2.tar.gz
(4.2 kB
view details)
File details
Details for the file tplcentral-0.1.2.tar.gz
.
File metadata
- Download URL: tplcentral-0.1.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29a6cf249c251f7f89189111b09a7d3275d1fa5c21e8b4ba20112e401ed07208 |
|
MD5 | 46110c9e74fe1c9b699ecd590c4a3580 |
|
BLAKE2b-256 | 4407de33a3b8e16841df094357b51e6b380b865484b03b8fc6b3fdc075819589 |