limone/MailJimp — pull request #13 by knaak (2012-05-18 12:28:32+00:00)
Title: Added basic Campaign, Template support plus added some minor improvements

Hi,

I needed to use MailChimp and upload a hundred thousand or so users with a few dozen list variables for segmentation. I found your library and started using it right away. I discovered that there were some features that I needed that your library didn't cover, namely Campaigns and Templates "namespaces".

So, I forked and added those elements. Its not full support for either, MailChimp offers a lot of options that I simply didn't need, but it sets the basics down and its working. Using my fork, you can list campaigns, pull unsubscribes, bounces, etc. You can create new campaigns and attach templates etc. All of that doesn't conflict with your work, and I have tried to follow your style as much as possible.

Second important change does touch your work. listBatchSubscribe only supported email out of the box. I needed to support my entire list of variables. So I created WithVars variants which allow you to provide the same Map for listBatchSubscribe as you could in updateMember. Its actually undocumented by MailChimp, but it works.

Please let me know if you have any questions. I might have another minor pull in a few months, but I wanted to get this up before I moved projects again.

This is my first pull request, so I am not sure what this looks like through the process, hopefully I don't create too much work. You will want to ignore the POM since I changed the name of your project, I will try to exclude it in the request.

Tim