Buy Stamps from the Command Line!
by Jarrett Streebin
Did you know you can buy stamps from your command line? Just open your Terminal and paste the following (on Mac):
Boom! There's your 46 cent stamp minus the trip to the post office. Just copy the URL in the response.
Now, try updating the addresses to real ones. Is that the postage you were looking for?
Want to try it for real now? Sign up for an account, load it with credit, then use your real API key.
Need to ship a box? Just remove
-d 'parcel[predefined_package]=Letter' and add dimensions. It's always a good idea to do it with a Test API key first, to make sure you're getting the postage you want.
If you really want to get fancy, check out the awesome CLI one of our users wrote!