Skip to content

andyatshippo/shippo-typescript-sdk-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shippo logo Shippo Typescript SDK demo

  • 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

Running the code

Before you run this code, you will need to have performed the below steps:

  1. Install a recent version of Python 3 (this sample was written using 3.10)
  2. Create a Shippo Account
  3. 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.
  4. Update the code in shippo-python-sdk-demo.py to use your token
  // Put your real token below...
  const sdk: Shippo = new Shippo({ apiKeyHeader:"shippo_test_0123456789abcdef0123456789abcdef01234567" });
  1. Install pre-requisites
npm install
  1. Run the sample!
npm start

About

An example showing how to use the Shippo SDK for Typescript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published