Skip to content

Instantly share code, notes, and snippets.

@joncalhoun
Created October 29, 2012 16:16
Show Gist options
  • Save joncalhoun/3974573 to your computer and use it in GitHub Desktop.
Save joncalhoun/3974573 to your computer and use it in GitHub Desktop.
EasyPost cURL Example
curl https://www.easypost.co/api/postage/buy \
-u cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi: \
-d 'to[name]=Jon Calhoun' \
-d 'to[street1]=388 Townsend St' \
-d 'to[street2]=Apt 20' \
-d 'to[city]=San Francisco' \
-d 'to[state]=CA' \
-d 'to[zip]=94107' \
-d 'from[name]=Jarrett Streebin' \
-d 'from[phone]=3235950799' \
-d 'from[street1]=310 Granelli Ave' \
-d 'parcel[length]=10.0' \
-d 'parcel[width]=5.0' \
-d 'parcel[height]=8.0' \
-d 'parcel[weight]=8.0' \
-d 'carrier=USPS' \
-d 'service=Priority'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment