Closed hifall closed 4 years ago
Hello @hifall ,
In the new version of SDK you would just do:
$mailerliteClient = new \MailerLiteApi\MailerLite($apiKey);
$subscribersApi = $mailerliteClient->subscribers()->get(['*'], \MailerLiteApi\Api\Subscribers::TYPE_ACTIVE);
$groups = $this->groupsApi->where(
[
'name' => [
'like' => 'some string',
],
]
)->get();
return 500 error
$groups = $this->groupsApi->where(
[
'name' => [
'$like' => '%string%',
],
]
)->get();
Such works
I am trying to get all active subscribers using this code:
But it returns all the subscribers, including unsubscribed.
How can I get all active subscribers?