Developer Friendly Shipping
Postmaster takes the pain out of sending shipments via UPS, Fedex, and USPS.
Save money before you ship, while you ship, and after you ship.
- gson 2.2.2
- httpclient 4.2.1
- commons-lang 3.1
- commons-codec 1.7
Please use appropriately tagged github issues to request features or report bugs.
Add this dependency to your pom.xml
:
<dependency>
<groupId>io.postmaster</groupId>
<artifactId>postmaster</artifactId>
<version>0.1</version>
</dependency>
Or export to a jar file and include it in your project (with required dependencies).
Download the postmaster-java source:
$ git clone https://github.com/postmaster/postmaster-java
Sample project is available (PostmasterClient). This is example of how to configure library and its dependencies, how to use it in code for simple Swing application.
To run this application with Maven, use:
$ mvn exec:java -Dexec.mainClass="io.postmaster.client.postmasterclient.SimplePostmasterClient"
Please mind that there are two settings that this library is dependent upon:
Api key, which could be set by simply calling:
PostMasterClient.setApiKey("MY_API_KEY");
Domain of Postmaster server which is located in library Settings class
Settings.API_DOMAIN
See https://www.postmaster.io/docs for tutorials and documentation.
You can test particular jUnit test from your IDE or performing Maven test:
$ mvn test
$ mvn clean deploy
$ mvn release:clean
$ mvn release:prepare
$ mvn release:perform