mailchimp-api icon indicating copy to clipboard operation
mailchimp-api copied to clipboard

Array emails in lists/{ID}/member

Open mflash123 opened this issue 5 years ago • 1 comments

I need sent in 1 api call multiple emails.

This example from mailChimp documentation

curl --request POST \
--url 'https://usX.api.mailchimp.com/3.0/lists/205d96e6b4' \
--user 'anystring:apikey' \
--header 'content-type: application/json' \
--data '{"members": [{"email_address": "[email protected]", "status": "subscribed"}, {"email_address": "[email protected]", "status": "subscribed"}, {"email_address": "[email protected]", "status_if_new": "subscribed"}], "update_existing": true}' \
--include

How can I use that library to pass multiple emails?

mflash123 avatar Sep 05 '19 20:09 mflash123

I think you can use batch request to accomplish the same.

Vinesh0299 avatar Apr 06 '20 17:04 Vinesh0299