mailchimp-api-v3.0

MailChimp Campaign Content Update

夙愿已清 提交于 2019-12-05 03:02:40
MailChimp campaign content docs - https://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/content I'm trying to replace some placeholders in a campaign content with actual values via the API. At first, I thought there might be some syntax errors or internal logic errors like non-unique mc:edit s into a mc:repeatable that would get the HTML refused/declined by MailChimp, hence the update not taking place, however, that was not the case. Tried replacing html with a simple <p>test</p> and it was still not working. Here are a couple of local logs, I'll use xyz as my campaign id

How to find people who clicked on a specific campaign using Mailchimp API v3

烂漫一生 提交于 2019-12-04 21:24:23
How do I find the list of all people who clicked on a specific campaign through Mailchimp API v3 ? I think Email Activity is what you are looking for. the emails field contains all emails that opened the campain. 来源: https://stackoverflow.com/questions/37741487/how-to-find-people-who-clicked-on-a-specific-campaign-using-mailchimp-api-v3

Mailchimp API 3.0 Batch Subscribe

╄→尐↘猪︶ㄣ 提交于 2019-12-04 04:46:21
问题 Acconding to the documentation a POST to /lists/{list_id} should batch subscribe or unsubscribe list members. If I send two members; one new member and one unsubscribed member: { "update_existing":true, "members":[ { "email_address":"yyyy@yyy.yy", "email_type":"html", "status":"subscribed" }, { "email_address":"xxx@xxx.xx", "email_type":"html", "status":"subscribed" } ] } The documentation(http://developer.mailchimp.com/documentation/mailchimp/reference/lists/#create-post_lists_list_id),

Finding cleaned/bounced email addresses for a MailChimp campaign or list

故事扮演 提交于 2019-12-04 04:01:41
I'd like to automate the gathering of unsubscribe and cleaned email accounts for a given campaign. In the API playground, I see all the methods available on the List entity. Unsubscribes I see that it's in the LIST API GET reports/xxxxxx/unsubscribed Cleaned Where can I find the cleaned/bounced emails from a list or campaign? I know I can see the count of bounced in various places, but I'd like to find the email addresses that actually bounced, and the first and last names of the list member. Basically I'd like the API same as the 'export cleaned to csv' available on the website. How can I use

Mailchimp api v3 - can't create segment based on a TEXT merge field

廉价感情. 提交于 2019-12-02 00:23:49
I'm trying to create a segment based on a new merge field of type TEXT that I just created, by using condition_type = TextMerge since it seems to be the only option from their documentation that matches my field: http://developer.mailchimp.com/documentation/mailchimp/reference/lists/segments/#create-post_lists_list_id_segments However, the description for TextMerge looks identical to EmailAddress. To be more specific they both apply only for the EMAIL / MERGE0 field. TextMerge vs EmailAddress I tried the following combinations for 'conditions': { 'condition_type': 'TextMerge', 'field': 'EVENTS

Mailchimp API 3.0 Batch Subscribe

我的梦境 提交于 2019-12-01 21:13:31
Acconding to the documentation a POST to /lists/{list_id} should batch subscribe or unsubscribe list members. If I send two members; one new member and one unsubscribed member: { "update_existing":true, "members":[ { "email_address":"yyyy@yyy.yy", "email_type":"html", "status":"subscribed" }, { "email_address":"xxx@xxx.xx", "email_type":"html", "status":"subscribed" } ] } The documentation( http://developer.mailchimp.com/documentation/mailchimp/reference/lists/#create-post_lists_list_id ), states that the resulting JSON will include an array with new_members, updated_members and an array with

Updating subscribers in a list using cURL and Mailchimp API v3

不羁的心 提交于 2019-12-01 01:15:56
问题 I have this code below that adds a user to a pre-existing list in Mailchimp. $apikey = '<api_key>'; $auth = base64_encode( 'user:'.$apikey ); $data = array( 'apikey' => $apikey, 'email_address' => $email, 'status' => 'subscribed', 'merge_fields' => array( 'FNAME' => $name ) ); $json_data = json_encode($data); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://us2.api.mailchimp.com/3.0/lists/<list_id>/members/'); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json

How to create a campaign using mailchimp v3.0

我只是一个虾纸丫 提交于 2019-12-01 00:13:11
I am trying to create a new campaign using MailChimp API v3.0 but I do not see any method that allows me to make this in the resources of the API. Does anyone know how I can do this? This was not possible when I originally answered this question, but the API has been updated to include campaign creation . PHP solution using POST request: //Sample Data $data = array("recipients" => array("list_id" => "205d96e6b4"), "type" => "regular", "settings" => array("subject_line" => "Subject", "title" => "Title", "reply_to" => "test@gmail.com", "from_name" => "Test", "folder_id" => "8888969b77")); $data

How to create a campaign using mailchimp v3.0

梦想的初衷 提交于 2019-11-30 18:04:28
问题 I am trying to create a new campaign using MailChimp API v3.0 but I do not see any method that allows me to make this in the resources of the API. Does anyone know how I can do this? 回答1: This was not possible when I originally answered this question, but the API has been updated to include campaign creation. 回答2: PHP solution using POST request: //Sample Data $data = array("recipients" => array("list_id" => "205d96e6b4"), "type" => "regular", "settings" => array("subject_line" => "Subject",

Create campaign with dynamic segment using MailChimp API V3.0

南楼画角 提交于 2019-11-29 11:19:24
Using MailChimp API V3.0 to create a campaign. I want to create a campaign that sends to users with a specific interest. It looks like this is possible in the docs, but I've tried every permutation I can think of. I can create the campaign fine as long as I leave out the segment_ops member. Does anyone have an example of PHP code that will do it? It seems that interests are handled strangely since you don't include the interest-category when setting a users interests via the API. I'm not sure how this affects campaign creation. Bob Ray I've gotten this to work, though there's no way you'd get