Questions tagged [mailchimp-api-v3]
45 questions
4
votes
2 answers
How to get rid of CORS error with mailchimp API?
How to deal with CORS error with mailchimp API?
This is my code using mailchimp package:
import mailchimp from '@mailchimp/mailchimp_marketing'
mailchimp.setConfig({
apiKey: process.env.NEXT_PUBLIC_MAILCHIMP_API_KEY,
server:…

Ali
- 131
- 1
- 3
- 12
3
votes
2 answers
Mailchimp Integration with php
I'm trying integrate Mailchimp for a website in PHP. Below code form Mailchimp documentation and I want to know the value of YOUR_SERVER_PREFIX and how to find that value
$mailchimp = new \MailchimpMarketing\ApiClient();
$mailchimp->setConfig([
…

shyamantha
- 77
- 1
- 7
3
votes
1 answer
Mailchimp API Node - create campaign for list based on tags
I'm making an async api request with a firebase cloud function to create a campaign within mailchimp for a specific set of users from a list. I read in the documentation that this can be done with tags this way I can build my own structure. I'm…

Sasheem
- 111
- 3
- 12
2
votes
1 answer
Display all items in the terminal with mailchimp API in javascript
I'm using mailchimp to display all my email address from an audience, to do so, I'm using this code:
const client = require("@mailchimp/mailchimp_marketing");
client.setConfig({
apiKey: "MY API KEY",
server: "MY SERVER",
});
const run = async ()…

Samy Rharade
- 95
- 1
- 7
2
votes
1 answer
JsonConvert unable to serialize correctly with brackets
I'm trying to post two fields and a bundled object with two fields to Mailchimp's API endpoint.
var store_id = ConfigurationManager.AppSettings["MailChimpStoreID"];
var method = String.Format("ecommerce/stores/{0}/products?",…

kzone95
- 49
- 6
1
vote
0 answers
Mailchimp Marketing API not returning all subscribers from list
I'm dealing with a problem retrieving subscribers from a Mailchimp list.
I am using the official PHP Mailchimp Marketing API library and Codeigniter.
Here's my code:
private function getMailchimpListSubscribers(string $list, int $count, int…

David
- 161
- 1
- 9
1
vote
0 answers
Mailchimp API 3.0 how to detect already unsubscribed
The Mailchimp API returns error 400 if I try to subscribe a user that is already subscribed. Then I found that if I unsubscribe and attempt to resubscribe again I also get error 400. Is there a way to differentiate between these cases?
Mailchimp's…

chillywilly
- 405
- 3
- 11
1
vote
1 answer
How to send a transactional email with attachment with Google Apps Script and Mailchimp API
I am trying to figure out how to send attachments in transactional emails with Mailchimp. According to the documentation, the attachments array must contain objects with type, name and content properties. The one that I can't figure out is content.…

Dmitry Kostyuk
- 1,354
- 1
- 5
- 21
1
vote
2 answers
How can I update subscriber tags using mailchimp3 for Python?
I am trying to update the tags for members of a MailChimp list using the mailchimp3 package/API on a regular basis using purchase data from an external source. The tags need to be updated weekly based on recent purchases by customers. Sample data is…

rachkraus
- 11
- 1
1
vote
2 answers
How can i set count at Mailchimp Marketink API with PHP listing campaigns
I have the following code:
setConfig(['apiKey' => 'APIKEY','server' => 'PREFIX']);
$response =…

Javi
- 11
- 1
1
vote
1 answer
Mailchimp PHP Marketing API pass request parameters
I am using Mailchimp's Marketing PHP API (https://github.com/mailchimp/mailchimp-marketing-php) to retrieve the templates list. It has the following code.

Dipendra Gurung
- 5,720
- 11
- 39
- 62
1
vote
1 answer
How to diplay all elements with one request in javascript with mailchimp API
I'm calling the API mailchimp to get à list of members and I display all email address of my members by using this code:
client = require("@mailchimp/mailchimp_marketing");
client.setConfig({
apiKey: "MY API KEY",
server: "MY SERVER",
});
const…

Samy Rharade
- 95
- 1
- 7
1
vote
1 answer
Posting custom data from contact form fields to Mailchimp list with API not working
I'm trying to push the $POST_[values] from my form to my Mailchimp list of contacts, but the only two values I can get to be pushed are "email" and "status" (which is "subscribed").
I read all the documentation and I can't make it work with the…

avia
- 1,527
- 7
- 19
1
vote
1 answer
No More than 10 Segment Members in A Batch Call with mailchimp-api-v3
I have been using mailchimp-api-v3 in node js for some time now and I think it is a great package and so easy to use. However, recently I needed to GET Segment Members for several segments using its .batch() method.
Unfortunately, only 10 members…

PeterKA
- 24,158
- 5
- 26
- 48
0
votes
0 answers
Mailchimp php curl sending email to subscriber
I am trying to send email to all subscribers in mailchimp using PHP's cURL but I am keep having an error saying The requested resource could not be found. My cURL code for other features like Adding member as a "Subscriber" is working fine with same…

Mittul At TechnoBrave
- 1,142
- 3
- 25
- 70