mailchimp-api-v3.0

Change MailChimp's success/error message

一笑奈何 提交于 2020-05-27 03:54:26
问题 I can't find this anywhere. Can anyone who's familiar with MailChimp advise? I've embed my form/input and there's some empty div's (below) which have error/success messages injected. <div id="mce-responses" class="clear"> <div class="response" id="mce-error-response" style="display:none"></div> <div class="response" id="mce-success-response" style="display:none"></div> </div> When I add custom text to the empty div's it just gets overwritten when the form is submitted so it's obviously

Change MailChimp's success/error message

烂漫一生 提交于 2020-05-27 03:54:09
问题 I can't find this anywhere. Can anyone who's familiar with MailChimp advise? I've embed my form/input and there's some empty div's (below) which have error/success messages injected. <div id="mce-responses" class="clear"> <div class="response" id="mce-error-response" style="display:none"></div> <div class="response" id="mce-success-response" style="display:none"></div> </div> When I add custom text to the empty div's it just gets overwritten when the form is submitted so it's obviously

MailChimp 3.0 HTTP POST Json Example

♀尐吖头ヾ 提交于 2020-04-13 05:43:09
问题 I'm trying to make use of MailChimp's Automation trigger that activates when a subscriber's email ID is posted to an API endpoint: (link) Following the Workflow instructions, I'm using the following https://us19.api.mailchimp.com/3.0/automations/xxxxxxxxxx/emails/xxxxxxxxxx/queue URL provided via the Campaign. I can successfully send an authenticated HTTP POST request (using this do_Post() method copied into my codebase), but am faced with a 400 error with a Content-Type: application/problem

Get html source code through Mailchimp API

梦想与她 提交于 2020-01-17 14:06:16
问题 I'm trying to use the Mailchimp API to download the html code used in a specific campaign. I was looking at this: http://kb.mailchimp.com/api/resources/campaigns/campaigns-instance which works fine, but I do not see how to the get the html source code. Is it because this is not allowed? 回答1: Now , you can access mailchimp v3 api from here. If you want to update html content of a specific campaign. Use this request pattern e.g. Unschedule your campaign Update campaign HTML Content through PUT

HTTParty to batch update users on MailChimp 3.0 API

半城伤御伤魂 提交于 2020-01-06 06:05:37
问题 I'm trying to use the batch API to add a new field to my list members. I'm able to post a batch request to the API and I receive a batch ID back. The batch request is accepted successfully but when I check the status of that job, I can see that is has failed: [{"status_code":404,"operation_id":null, "response":"{\"type\":\"http:\/\/developer.mailchimp.com\/documentation\/ mailchimp\/guides\/error-glossary\/\", \"title\":\"Resource Not Found\", \"status\":404, \"detail\":\"The requested

MailChimp API - dynamic content - mc:repeatable + mc:edit

社会主义新天地 提交于 2020-01-05 04:33:07
问题 My email template has some intro text followed by a repeatable block [a picture + a button]. I would like to repeat this block some X times and each time have picture link and button link updated with new links. Currently I am using this payload to edit one block, and it is working as intended. I have used this SO answer as a guideline. var data = { 'template': { 'id': template_id, 'sections': { 'editbutton': '<a class="mcnButton " title="Get Profile" href="' + button1 + '" target="_blank"

add tags to mailchimp subscriber created via api php

我怕爱的太早我们不能终老 提交于 2020-01-03 06:59:07
问题 I am using the PHP Curl code to add new subscriber to MailChimp. It is adding the subscriber with all information but I am not getting how to add the tags via with same Curl call. I have tried in many ways but nothing worked for me. Please let me know how can I add the tags to this new subscriber. 回答1: This is working example of registering a user to mail-chimp list and adding tags: $api_key = 'YOUR_API_KEY'; $list_id = 'YOUR_LIST_ID'; $email = 'USER_EMAIL'; /** * Possible Values for Status:

400 Bad Request When Adding Member to MailChimp List

情到浓时终转凉″ 提交于 2020-01-02 19:20:10
问题 I am sending a POST request to the following resource and getting a 400. I understand what the error means, but still am unsure why I'm getting it when a GET request to the same resource works. /lists/{list_id}/members Here is a exerpt of the code: $client = new \GuzzleHttp\Client(); $response = $client->request('POST', // <-- Drop in a GET here and it works, other than it's not the behavior I need. env('MAILCHIMP_API_URL') . 'lists/' . env('MAILCHIMP_LIST_KEY') . '/members', [ 'auth' => [

Cannot create segment using MailChimp API v3

拜拜、爱过 提交于 2019-12-30 09:04:20
问题 I'm using the "playground" to test creating a segment but I keep getting validations errros my request: { "name": "MyTest", "options": { "match": "any", "conditions": [ { "field": "EMAIL", "op": "is", "value": "p001@mymaildomain.xxx" }, { "field": "EMAIL", "op": "is", "value": "p002@mymaildomain.xxx" } ] } } response is: type: http://kb.mailchimp.com/api/error-docs/400-invalid-resource title: Invalid Resource status: 400 detail: The resource submitted could not be validated. For field

Adding subscribers to a list using Mailchimp's API v3

心已入冬 提交于 2019-12-27 18:23:31
问题 I'm trying to add users to a list I've created in Mailchimp but I can't find any code examples anywhere. I've tried figuring out how to use the API but I'm very much a "Look at an example and learn" kind of person. I've tried using version 2 of the API but nothing seems to be working despite working from examples on the net and Mailchimp says the following about earlier versions of their API on their website: Versions 2.0 and earlier are deprecated. Only minimal support—bug fixes, security