- Collect shipping rates offered by the carriers configured in your Shippo account
- Use a selected rate to request a label
- Download the label for use in shipping your package
Before you run this code, you will need to have performed the below steps:
- Install a recent version of Python 3 (this sample was written using 3.10)
- Create a Shippo Account
- Generate a Shippo API Token. Since this is a sample app, it is recommended that you generate a test token rather than a production (i.e., paid) token.
- Update the code in shippo-python-sdk-demo.py to use your token
// Put your real token below...
const sdk = new Shippo({ apiKeyHeader: "shippo_test_0123456789abcdef0123456789abcdef01234567"});
- Install pre-requisites
npm install
- Run the sample!
npm start