mailchimp

Why does gibbon throw 'uninitialized constant Gibbon::API (NameError)'

↘锁芯ラ 提交于 2019-12-10 13:58:58
问题 I'm trying to add the gibbon gem into a Rails 3.2 app. I've followed the instructions, and set up a gibbon.rb initializer with the following Gibbon::API.api_key = ENV["MAILCHIMP_API_KEY"] Gibbon::API.timeout = 15 Gibbon::API.throws_exceptions = false The app is throwing uninitialized constant Gibbon::API (NameError) I've tried to require 'gibbon' amongst other things, but nothing seems to work. Why is the class not initialized? 回答1: Turns out I was using the wrong version of the gem. Github

MailChimp send email v3.0

流过昼夜 提交于 2019-12-10 13:58:32
问题 The version 2.0 of MailChimp APIs has a campaign send API. However I don't find any similar API on v3.0. I do find an automation API where in I can start a workflow, however it appears from the documentation that workflows can't be created using APIs and can be created only using the GUI. The requirement is to be able to send emails using MailChimp API. Please advise. 回答1: It's now possible to both create and send a campaign through the V3.0 API. See the 'Action' tab here You can send to a

Mailchimp Error: Bad Request - Your Campaign is not ready to send

早过忘川 提交于 2019-12-10 10:34:24
问题 I am using following tutorial to create campaign and send email in MailChimp using Php. https://isabelcastillo.com/create-send-mailchimp-campaign-api-3 My Code piece are require_once('../wp-load.php'); function isa_mailchimp_api_request( $endpoint, $type = 'POST', $body = '' ) { // Configure -------------------------------------- $api_key = 'API KEY HERE'; // Changed API Key here // STOP Configuring ------------------------------- $core_api_endpoint = 'https://<dc>.api.mailchimp.com/3.0/';

MailChimp Campaign Content Update

落花浮王杯 提交于 2019-12-10 03:38:02
问题 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

Subscribing users with groups through MailChimp 2.0 API

徘徊边缘 提交于 2019-12-10 01:52:22
问题 I've been working on this problem for hours and can't seem to find the solution, hopefully someone can help! I'm trying to create a simple MailChimp subscribe form on an HTTPS site and hence must use the API. I am using the "super simple mailchimp-api" PHP wrapper they suggest, and am trying to add my subscribers to interest groups based on checkboxes selected in the form. All the relevant checkboxes are named "group[]" so that PHP will POST them as an array. I am passing the below to the

Can you get a MailChimp interest group ID without using the API?

夙愿已清 提交于 2019-12-10 01:36:53
问题 With the MailChimp API, to add a member to a list with a specific interest group, you need both that list's ID and the interest group's ID. To get both those IDs, you can either query the API for them, or in the case of the list ID you can find it in the form code that the MailChimp interface outputs. The interest group ID can not be found in the same way: the form code simply users integer IDs to reference the interest groups, which are not accepted by the API. My question: is there any way

Is there a way not to redirect people to a “thank you” page with Mailchimp?

人走茶凉 提交于 2019-12-09 23:29:11
问题 I saw on the Mailchimp website that you can redirect the user to a custom thank you page when they subscribe to your mailing list, but that's not exactly what I want to do. When a user subscribe to my mailing list, I want to hide the form and replace it with a thank you note directly on my page without any redirection. Is there a way to do that? 回答1: You can do this by modifying the form action. Change “subscribe/post” to “subscribe/post-json” … <form action="...list-manage.com/subscribe/post

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

99封情书 提交于 2019-12-09 16:48:46
问题 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.

MailChimp Editable buttons inline styling is overridden

你说的曾经没有我的故事 提交于 2019-12-09 13:46:20
问题 I have created a MailChimp template with Editable Regions. I've styled everything inline, and I have an editable button as so: <!-- button --> <table class="button" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff" style="border-spacing: 0;font-family: Roboto, 'Times New Roman', Times, serif;border-left:1px solid #24303f;border-right:1px solid #24303f;border-bottom:1px solid #24303f;border-top:1px solid #24303f;margin:0 auto;min-width:248px;text-align:center;"> <tr

Add users to interest group via MailChimp API v2.0

只谈情不闲聊 提交于 2019-12-09 11:42:47
问题 I want to add a subscriber to an interest group via the MailChimp API. This is my $merge_vars array: $merge_vars = array( 'GROUPINGS' => array( 0 => array( 'id' => 17385, // The group list ID 'groups' => "Test 123", // A test group, that does exist ) ) ); and this is how I'm updating the member: $update = $mc->lists->updateMember(self::$mainListID, $email, $merge_vars); Here's a var_dump($merge_vars) : array(1) { ["GROUPINGS"]=> array(1) { [0]=> array(2) { ["id"]=> int(17385) ["groups"]=>