A tiny library to deliver emails over the Mandrill scalable mailing service with comfort and without need of J2EE
This library takes dependency very seriously. It's respectful to target project or platform needs. There are compile time dependencies on a set of popular libraries:
But don't panic! It's for a very good reason. This library is very flexible in terms of runtime selection of dependencies. It depends only on you which json serializer you want to use or which http client library gives you enough comfort. Use exclude in your app pom.xml.
This library even is very friendly to your platform or application. For example on Android you can even exclude all json serializers dependencies from your project since it can leverage Java SE standard HttpsUrlConnection class and org.json already available on Android platform.
It is entirely on you. Isn't it amazing? :)
For examples please see the couple of tests. It's not that awesome, but the philosophy is simple. There are some simple steps to follow:
- create instance of JsonHandler of your choice
- create instance of HttpHandler of your choice
- create instance of MandrillServiceFactory and pass your API key, your JsonHandler and HttpHandler
- ask for the implementation of service described as static inner interface of the Category class
- use the calls as you will
- library is almost finished, but I would like to introduce few additional Builder classes just to increse comfort with Structs and StructArrays when creating specific Structs like recipient(list) and so on
- make it's path to Maven Central repository
Don't hesitate to contact me, send patches or so. I'm keen to new ideas.
This library uses LGPL v3 license. You can use it without limitations if you use it as it is for both free and commercial use. Feel free to fork, it's completely fine, but please keep your fork public. Thank you.