-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
First of all, appreciate the works. This library is indeed helpful.
It works when I tried to create an email campaign in Mailchimp, but I have still some problems I have faced
(1) Campaign name cannot be set different from subject line
(2) Cannot personalize To Field with merge tags, e.g., |FNAME|
(3) Cannot create preview text.
(4) can i programmatically upload image to mailchimp server and then get the image link?
Below is the function I have used to created to create mailchimp campaign.
def campaign_creation_function(campaign_name, audience_id, from_name, reply_to, client):
campaign_name = campaign_name
audience_id = audience_id
from_name = from_name
reply_to = reply_to
data = {
"recipients" :
{
"list_id": audience_id
},
"settings":
{
"subject_line": campaign_name,
"from_name": from_name,
"reply_to": reply_to
},
"type": "regular"
}
new_campaign = client.campaigns.create(data=data)
return new_campaignMetadata
Metadata
Assignees
Labels
No labels
