forked from Ecwid/ecwid-mailchimp
-
Notifications
You must be signed in to change notification settings - Fork 0
Extending API
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:
-
Create a subclass of MailChimpMethod.
-
Mark the class with the MailChimpMethod.Name annotation. The annotation is used to specify the corresponding MailChimp API method name.
-
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.