mailchimp-api
mailchimp-api copied to clipboard
Array emails in lists/{ID}/member
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?
I think you can use batch request to accomplish the same.