How to get number of subscribers

,

Hello,

I use PHP. What’s the easiest way to get the number of current subscribers?

$wonderpush->rest()->get('users', ['sort' => 'none']);

returns
{"count":1,"data":[{"id":"1","applicationId":...

I was expecting count=5 as we have 5 subscribers?

Thanks & Regards
Chris

Hi Chris,

What you are looking for is the number of opt-in installations (not users).

You can call the following:

$wonderpush->rest()->get('installations', ['limit'=>0, 'reachability'=>'optIn']);

Best,