Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.
/ mandrill-tiny Public archive

A super simple Java API library for the Mandrill email as a service platform.

License

Notifications You must be signed in to change notification settings

littleli/mandrill-tiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mandrill-tiny

A tiny library to deliver emails over the Mandrill scalable mailing service with comfort and without need of J2EE

Current condition: Build Status Coverage Status

dependencies

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? :)

steps to use

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

todo

  • 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

contribute

Don't hesitate to contact me, send patches or so. I'm keen to new ideas.

license

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.

About

A super simple Java API library for the Mandrill email as a service platform.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages