Issue
I'm looking for way how to grab a specific member/user information by using his email address. Is there any documentation or example?
I'm using MailChimp API V3.0. I have tried to execute the following code but without any success:
curl --request GET --user 'anystring:<api_key>' --url 'https://us2.api.mailchimp.com/3.0/lists/<list_id>/members?email_address=<my_email_address>'
Solution
I have found the solution for my question. You just need to convert the email address to MD5 hash and use it for the query. Here is the correct call:
curl --request GET --user 'anystring:<api_key>' --url 'https://us2.api.mailchimp.com/3.0/lists/<list_id>/members/<md5(my_email_address)>'
Answered By - remram Answer Checked By - David Goodson (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.