PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, September 6, 2022

[FIXED] How can I get member information by using API V3.0 from MailChimp?

 September 06, 2022     curl, mailchimp, mailchimp-api-v3.0     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing