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

Tuesday, September 6, 2022

[FIXED] How do I search Mailchimp for all members with a specific command using their API

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

Issue

Some of my members share a specific tag I have assigned them - ie: tag123

What api command can I use to retrieve all members who have this tag assigned to them?


Solution

You can try using the search-members GET API call with the specific tag set in the query field. (More on https://developer.mailchimp.com/documentation/mailchimp/reference/search-members/#read-get_search_members)

e.g.

curl --request GET \
--url 'https://usX.api.mailchimp.com/3.0/search-members?query=tag123' \
--user 'anystring:apikey' \
--include


Answered By - Josip Kolarić
Answer Checked By - Robin (PHPFixing Admin)
  • 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