Created
October 29, 2012 16:00
-
-
Save joncalhoun/3974387 to your computer and use it in GitHub Desktop.
EasyPost cURL Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]=3237078576' \ | |
-d 'from[street1]=310 Granelli Ave' \ | |
-d 'from[city]=Half Moon Bay' \ | |
-d 'from[state]=CA' \ | |
-d 'from[zip]=94019' \ | |
-d 'parcel[length]=10.0' \ | |
-d 'parcel[width]=5.0' \ | |
-d 'parcel[height]=8.0' \ | |
-d 'parcel[weight]=10.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