Skip to content

Instantly share code, notes, and snippets.

@joncalhoun
Created October 1, 2012 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joncalhoun/3810822 to your computer and use it in GitHub Desktop.
Save joncalhoun/3810822 to your computer and use it in GitHub Desktop.
Verify address with EasyPost and Java
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");
// Verify the address
EasyPost.Address.verify(address);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment