mailchimp-api-v3.0

Create campaign with dynamic segment using MailChimp API V3.0

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 06:49:14
问题 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

MailChimp API PHP - Add to Interest Group

牧云@^-^@ 提交于 2019-12-17 18:35:30
问题 I'm currently using the MailChimp API for PHP, version 1.3.1 (http://apidocs.mailchimp.com/api/downloads/#php) I've set up a list in MailChimp, and would like to dynamically add: Subscribers to the list (done: $objMailChimp->listBatchSubscribe($strMailingListID, ...) ) Interest Groupings (done: $objMailChimp->listInterestGroupingAdd($strMailingListID, ...) ) Interest Groups into those Groupings (done: $objMailChimp->listInterestGroupAdd($strMailingListID, ...) ) Subscribers assigned to

Sending Welcome Email when using Mailchimp API 3 List/Member Method

别等时光非礼了梦想. 提交于 2019-12-12 10:33:45
问题 Is there a way to send the Mailchimp Welcome Email when using Mailchimp API 3 List/Member method? Older API implementations can do it without the need for Automation (paid feature), but I am not sure if API 3 supports it in List/Member method. I am referring to emails that users usually get when they sign up using a standard Mailchimp form. For instance, this script will not send a Welcome email or any other post-sign up Mailchimp emails. $apikey = '<api_key>'; $auth = base64_encode( 'user:'.

Mailchimp - how to tell when a user's status is set to pending

本小妞迷上赌 提交于 2019-12-12 03:35:25
问题 I'd like to be able to tell in my webhook when a user's status is set to pending . Setting a user's status to pending triggers a Profile Update event, but as far as I can see there is nothing in the form values posted to my webhook about the user's status for this event. 回答1: This looks like a feature request for MailChimp. Absent that, you can always query the user's info from the API to get their current status. 来源: https://stackoverflow.com/questions/43034831/mailchimp-how-to-tell-when-a

Issue when requesting create segments API v3 through PHP wrapper

家住魔仙堡 提交于 2019-12-11 08:14:42
问题 I have test-driving for Mailchimp API v3 using your PHP wrapper. It's working great for me But when I'm creating a request using POST for "Create Segment" getting an error (attach screenshot): Request Code is (through associative array) - $api_key = "xxxxxxxxxxxxxxxx-us11"; $list_id = "1xx2xx3xx4xx"; $MailChimp = new MailChimp($api_key); $result = $MailChimp->post('lists/' . $list_id . '/segments', array('name' => 'Testing Data', 'options' => array('match' => 'all', 'conditions' => array(

Mailchimp API /lists date type parameter formatting for merge_fields

谁说胖子不能爱 提交于 2019-12-11 06:06:01
问题 I have a date merge_field that I need to populate in the v3 version of the Mailchimp API. Lots of google searching on this before I found my answer... hopefully this saves someone time. 回答1: The format expected is: mm/dd/yyyy . It appears that single digits in month and day work just fine so don't sweat making it strict. If you're in Javascript passing a date object into this function should work for you (assuming you're okay with using the local timezone): function mailchimpDateFormat(date)

Add subscrber to mailchimp API v3

徘徊边缘 提交于 2019-12-11 04:47:19
问题 I write this function: public function mailchimp() { $email = 'testing123@test.com'; $first_name = 'Test'; $last_name = 'Test'; $api_key = 'dfrgergredgdfgdfgdfgdfg-us9'; // YOUR API KEY // server name followed by a dot. // We use us13 because us13 is present in API KEY $server = 'us9.'; $list_id = '718943'; // YOUR LIST ID $auth = base64_encode( 'user:'.$api_key ); $data = array( 'apikey' => $api_key, 'email_address' => $email, 'status' => 'subscribed', 'merge_fields' => array( 'FNAME' =>

Python: Adding subscribers to mailchimp with bulk API V3

谁说我不能喝 提交于 2019-12-11 02:04:26
问题 Im trying to write a function to create subscribers in mailchimp, but I get an error, and I can't understand what is wrong. Im using python-mailchimp (And yes, I have mye correct list-id and not 000000) My code: from mailchimp3 import MailChimp def export_to_mailchimp(): #Get all users in DB users = User.objects.all() #Create list for dictionaries databody = [] #loop through queryset for userobject in users: #Create dictionary databody_item = { "email_address": item.email, "status":

Mailchimp automation send same email multiple time

ε祈祈猫儿з 提交于 2019-12-10 23:55:33
问题 I use mailchaimp automation workflow on a landing page to send emails to my customers. The automation workflow is : Customer enter his email in my form The customer is added to my mailchimp list (or updated if already exist) with api V3 I call send the first email with this trigger (http://developer.mailchimp.com/documentation/mailchimp/reference/automations/emails/queue/) Some time later automation send a second email to my subscriber. This workflow work great the first time but if my

What is the right syntax for “timeframe” in MailChimp API 3.0

南笙酒味 提交于 2019-12-10 19:37:17
问题 I want to use the MailChimp API 3.0: http://developer.mailchimp.com/documentation/mailchimp/reference/lists/members/# How do I set the query string parameter for the fields since_timestamp_opt , before_timestamp_opt , since_last_changed and before_last_changed ? Is it a timestamp , something like this: 2016-03-08 17:50:41 or something else? Can somebody give me an example? 回答1: It is 2016-03-08 17:50:41 YYYY-MM-DD hh:mm:ss 来源: https://stackoverflow.com/questions/35875377/what-is-the-right