Skip to content
basiliscus edited this page Sep 17, 2012 · 4 revisions

Currently Ecwid-mailchimp itself has wrappers for a limited number of MailChimp API methods only. However, it is very easy to extend the API and add support for any method you need:

  1. Create a subclass of MailChimpMethod.

  2. Mark the class with the MailChimpMethod.Name annotation. The annotation is used to specify the corresponding MailChimp API method name.

  3. Add necessary fields to your class and mark them with the MailChimpObject.Field annotation.

To understand it better, have a look at an existing method implementation, for example listBatchSubscribe.

Clone this wiki locally