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
| require "easypost" | |
| Easypost.api_key = "ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ" | |
| EasyPost::Postage.buy( | |
| :parcel => { | |
| :weight => 1.1, | |
| :height => 12, | |
| :width => 14, | |
| :length => 7 | |
| }, |
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
| import easypost | |
| easypost.api_key = "ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ" | |
| easypost.Postage.buy({ | |
| "tracking": True, | |
| "insurance": 135, | |
| "weight": 1.1, | |
| "height": 12, | |
| "width": 14, | |
| "length": 7, |
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
| require "easypost" | |
| Easypost.api_key = "ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ" | |
| EasyPost::Postage.compare( | |
| :parcel => { | |
| :weight => 1.1, | |
| :height => 12, | |
| :width => 14, | |
| :length => 7 | |
| }, |
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
| import easypost | |
| easypost.api_key = "ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ" | |
| easypost.Postage.compare({ | |
| "tracking": True, | |
| "insurance": 135, | |
| "weight": 1.1, | |
| "height": 12, | |
| "width": 14, | |
| "length": 7, |
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
| require "easypost" | |
| Easypost.api_key = "ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ" | |
| Easypost::Address.verify( | |
| :street1 => "101 California St", | |
| :street2 => "Suite 1290", | |
| :city => "San Francisco", | |
| :state => "CA", | |
| :zip => "94111" | |
| ) |
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
| import easypost | |
| easypost.api_key = "ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ" | |
| easypost.Address.verify({ | |
| "street1": "101 California St", | |
| "street2": "Suite 1290", | |
| "city": "San Francisco", | |
| "state": "CA", | |
| "zip": "94111" | |
| }) |
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
| EasyPost.setApiKey("ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ"); | |
| // Create the package | |
| EasyPost.Package package = new EasyPost.Package() | |
| .setWeigth(1.1) | |
| .setHeight(12) | |
| .setWidth(14) | |
| .setLength(7); | |
| // Create the to and from addresses |
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
| EasyPost.setApiKey("ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ"); | |
| // Create the package | |
| EasyPost.Package package = new EasyPost.Package() | |
| .setWeigth(1.1) | |
| .setHeight(12) | |
| .setWidth(14) | |
| .setLength(7); | |
| // Create the to and from addresses |
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
| EasyPost.setApiKey("ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ"); | |
| // Create the address to test | |
| EasyPost.Address address = new EasyPost.Address() | |
| .setName("Dirk Diggler") | |
| .setStreet1("300 Granelli Ave") | |
| .setCity("Half Moon Bay") | |
| .setState("CA") | |
| .setZip("94019"); |
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
| import easypost | |
| easypost.api_key = 'rWI791GTPCIwGMaQEGFQmJyEeZ925kln' | |
| # Setting up data... | |
| to_address = { | |
| "street1": '388 Townsend St', | |
| "street2": 'Apt 20', | |
| "city": 'San Francisco', | |
| "state": 'CA', | |
| "zip": '94107' |
OlderNewer