Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering by status #301

Open
cAstraea opened this issue Aug 14, 2020 · 1 comment
Open

Filtering by status #301

cAstraea opened this issue Aug 14, 2020 · 1 comment

Comments

@cAstraea
Copy link

Hello,
Was something changed with the API ? I'm trying to filter on a list by status either subscribed or unsubscribed but it returns an empty array ... other filters seems to work though
https://developer.mailchimp.com/documentation%2Fmailchimp%2Freference%2Flists%2Fmembers%2F%2F#%20

$MailChimp->get('/lists/******/members?since_last_changed=2020-08-01T00:00:00+00:00&status=unsubscribed')

returns an empty array even though there should be members

@PieterBoghaert
Copy link

PieterBoghaert commented Apr 21, 2021

you have to use an array as the 2nd argument for the params: $result = $MailChimp->get('lists/' . $listId . '/members', ['status' => 'subscribed']);

I was just facing the same problem :p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants