This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

To use the MailChimp connector, add the  <mailchimp.init>  element in your configuration before carrying out any other MailChimp operations. 

MailChimp uses the access token as an API key when considering authentication. F or more information on authentication, see http://developer.mailchimp.com/documentation/mailchimp/guides/how-to-use-oauth2/.

init
<mailchimp.init>
    <apiUrl>{$ctx:apiUrl}</apiUrl>
    <apiVersion>{$ctx:apiVersion}</apiVersion>
    <accessToken>{$ctx:accessToken}</accessToken>
    <blocking>{$ctx:blocking}</blocking>
</mailchimp.init>
Properties  
  • apiUrl: The base endpoint URL of the MailChimp API.
  • apiVersionThe version of the MailChimp API.
  • accessToken: The value of the Access Token to access the MailChimp API via request.
  • blocking: The blocking parameter is helping connector performs the blocking invocations to MailChimp.

Configuring the message formatters and builders

Ensure that the following Axis2 configurations are added and enabled in the <ESB_HOME>\repository\conf\axis2\axis2.xml file.

Required message formatters
messageFormatters
<messageFormatter contentType="application/json" class="org.apache.synapse.commons.json.JsonStreamFormatter"/>
Required message builders
messageBuilders
<messageBuilder contentType="application/json" class="org.apache.synapse.commons.json.JsonStreamBuilder"/>

Configuring operations

Now that you have connected to MailChimp, use the information in the following topics to perform various operations with the connector. 

  • No labels