Module mailchimp.marketing

ballerinax/mailchimp.marketing Ballerina library

1.0.0

Overview

Mailchimp Marketing Email is a powerful and user-friendly platform provided by Intuit Mailchimp, designed for creating, managing, and optimizing targeted email campaigns. It enables businesses to engage customers with personalized marketing emails, automated workflows, and insightful analytics to drive growth and build lasting relationships.

The ballerinax/mailchimp.marketing package provides APIs to connect and interact with the Mailchimp Marketing API v3.0.85, enabling seamless integration with applications to manage marketing email sending, templates, messages, and more.

Setup guide

To use the Mailchimp Marketing Email connector, you need to have a Mailchimp account and access to a API key. Follow the steps below to set up your account and generate the required API key.

Step 1: Create a Mailchimp Account

  1. Go to the Mailchimp Sign Up Page and create a Mailchimp account.

  2. Once signed in, click on your profile icon in the bottom-left corner to access the account menu.

    Mailchimp dashboard Mailchimp Profile Menu

Step 2: Generate a API Key

  1. In the menu, go to Extras section and click on API keys.

    Mailchimp Extra Section

  2. Choose Create A Key (not the Mandril API key). You will be redirected to the API Key Generate Dashboard.

    Mailchimp API Selection

  3. In the API Key dashboard, add a API key name and click Generate Key to generate your key.

    Mailchimp API Key Generat

  4. Copy the generated API key. You will need this to authenticate your connector.

Quickstart

To use the Mailchimp Marketing connector in your Ballerina application, update the .bal file as follows:

Step 1: Import the module

Import the mailchimp.marketing module.

Copy
import ballerinax/mailchimp.marketing;

Step 2: Configure the API Key

Create a Config.toml file and add your API key obtained from the setup process:

Copy
mailchimpApiKey = "<your-mailchimp-marketing-access-token>"

Step 3: Run the Ballerina application

Copy
bal run

Examples

The MailChimp Marketing Emails connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering the following use cases:

  1. Add Mailchimp Subscriber – Add a new subscriber to a specific Mailchimp audience list.
  2. List Mailchimp Audiences – Fetch and display a list of all your Mailchimp audience lists.

Import

import ballerinax/mailchimp.marketing;Copy

Other versions

1.0.0

Metadata

Released date: 2 months ago

Version: 1.0.0

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.12.0

GraalVM compatible: Yes


Pull count

Total: 0

Current verison: 0


Weekly downloads


Source repository


Keywords

mailchimp

marketing

email

campaigns

ballerina

connector


Contributors