Skip to main content

Matimo provider — Mailchimp tools (campaigns, lists, members)

Project description

matimo-mailchimp

Mailchimp tools for Matimo — manage campaigns, lists, and subscribers.

PyPI Docs


Installation

pip install matimo matimo-mailchimp

Available Tools (7 Total)

Tool Description
mailchimp-get-lists List all audiences (lists) in your account
mailchimp-get-list-members Get subscribers in an audience
mailchimp-add-list-member Subscribe an email address to an audience
mailchimp-update-list-member Update subscriber tags, status, or merge fields
mailchimp-remove-list-member Unsubscribe or archive a list member
mailchimp-create-campaign Create a new email campaign
mailchimp-send-campaign Send a campaign to its audience

Quick Start

import asyncio
import os
from matimo import Matimo
from matimo_mailchimp import get_tools_path

async def main():
    matimo = await Matimo.init(get_tools_path())

    # List all audiences
    lists = await matimo.execute('mailchimp-get-lists', {})
    print(lists)

    # Add a subscriber
    await matimo.execute('mailchimp-add-list-member', {
        'list_id': 'abc123def',
        'email_address': 'new@example.com',
        'status': 'subscribed',
        'merge_fields': {'FNAME': 'Jane', 'LNAME': 'Doe'},
    })

    # Create and send a campaign
    campaign = await matimo.execute('mailchimp-create-campaign', {
        'list_id': 'abc123def',
        'subject_line': 'April Newsletter',
        'from_name': 'My Company',
        'reply_to': 'hello@example.com',
    })
    await matimo.execute('mailchimp-send-campaign', {
        'campaign_id': campaign['id'],
    })

asyncio.run(main())

Authentication

export MAILCHIMP_API_KEY="your-api-key-us1"     # includes datacenter suffix
export MAILCHIMP_SERVER_PREFIX="us1"             # datacenter prefix from your API key

Getting Mailchimp API Credentials

  1. Log in to MailchimpProfileExtrasAPI keys
  2. Click Create A Key
  3. Copy the API key — the suffix (us1, us6, etc.) is your server prefix

Documentation


Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matimo_mailchimp-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matimo_mailchimp-0.1.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file matimo_mailchimp-0.1.0.tar.gz.

File metadata

  • Download URL: matimo_mailchimp-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for matimo_mailchimp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e11b696b3103c4612de9925123caed80aefcf5a3bfed36eb3be9ef710d18d917
MD5 bfe43a84755747abf8641c22d1686865
BLAKE2b-256 5ec234e7a78fc3e4d367189ecb5551b9fc83708e5ac4a39a407c8c42e7c9f08b

See more details on using hashes here.

File details

Details for the file matimo_mailchimp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for matimo_mailchimp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7974cc78fc63dd10947bc4f16096d2c09c07a42a81ac28fc942300bc7c953db
MD5 6cf9957981b163831407b52fce476ce5
BLAKE2b-256 5155f55f10c84ed9394e6c9244ee053c89ff80e05339e872d7074b7b918ff77c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page