At the execution of this sample, all the new event attendees in Evenbrite within a particular day will be added to your Mailchimp subscriber list(audience) as new members(contacts).
- Eventbrite account
- Mailchimp account
- Visit Eventbrite and create a Eventbrite account.
- Obtain tokens by following this guide
- Visit Mailchimp and create a Mailchimp account.
- Navigate to the API Keys section of your Mailchimp account.
- If you already have an API key listed and you’d like to use it for your application, simply copy it. Otherwise, click Create a Key and give it a descriptive name that will remind you which application it’s used for.
Create a file called Config.toml
at the root of the project.
[<ORG_NAME>.eventbrite_event_attendees_to_mailchimp_subscribers]
eventbriteEventId = "<EVENTBRITE_EVENT_ID>"
mailchimpServiceUrl = "<MAILCHIMP_SERVICE_URL>"
mailchimpAudienceName = "<MAILCHIMP_SUBSCRIBER_LIST_AUDIENCE_NAME>"
[<ORG_NAME>.eventbrite_event_attendees_to_mailchimp_subscribers.eventbriteAuthConfig]
token = "<EVENTBRITE_ACCESS_TOKEN>"
[<ORG_NAME>.eventbrite_event_attendees_to_mailchimp_subscribers.mailchimpAuthConfig]
username = "<MAILCHIMP_USERNAME>"
password = "<MAILCHIMP_PASSWORD>"
- Obtain the
eventbriteEventId
,mailchimpServiceUrl
and MailchimpmailchimpAudienceName
. - The
eventbriteEventId
is available in the event URLhttps://www.eventbrite.com/myevent?eid={eventbriteEventId}}
. - The
mailchimpServiceUrl
ishttps://<dc>.api.mailchimp.com/3.0/
. The part of the URL corresponds to the data center for your account. For example, if the data center for your account is us6, all API endpoints for your account are available relative to https://us6.api.mailchimp.com/3.0/. There are a few ways to find your data center. It’s the first part of the URL you see in the API keys section of your account; if the URL is https://us6.mailchimp.com/account/api/, then the data center subdomain isus6
. It’s also appended to your API key in the form key-dc; if your API key is0123456789abcdef0123456789abcde-us6
, then the data center subdomain isus6
. - The
mailchimpAudienceName
will be your Mailchimp subscriber list name. - Once you obtained all configurations, Create
Config.toml
in root directory. - Replace the necessary fields in the
Config.toml
file with your data.
Run the Ballerina project created by the integration sample by executing bal run
from the root.
All the new event attendees in Evenbrite within a particular day will be added to your Mailchimp subscriber list(audience) as new members(contacts).