This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mailchimp_marketing as MailchimpMarketing | |
from mailchimp_marketing.api_client import ApiClientError | |
import csv | |
try: | |
client = MailchimpMarketing.Client() | |
client.set_config({ | |
"api_key": "XX", | |
"server": "XX" | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --request GET \ | |
--url 'https://<XX>.api.mailchimp.com/3.0/lists/<LIST ID>/members/?unique_email_id=<"e=XX">' \ | |
--user 'anystring:<APIKEY>' |