wagtail / wagtail-newsletter

Send email newsletters based on Wagtail content
https://wagtail-newsletter.readthedocs.io
BSD 3-Clause "New" or "Revised" License
9 stars 3 forks source link

Fetch audiences, and audience segments, from Mailchimp #18

Closed mgax closed 1 month ago

mgax commented 2 months ago

For managing newsletter campaigns, the package will use a backend class, that implements a generic interface, and can be swapped out to use a different campaign provider, or to fine-tune the behaviour of an existing backend. Out of the box, the package will offer a Mailchimp specific backend.

Create a MailchimpCampaignBackend class with two methods:

The backend expects the following Django setting:

The package should look up the WAGTAIL_NEWSLETTER_CAMPAIGN_BACKEND Django setting to get a dotted path for a backend class. It should default to MailchimpCampaignBackend.