public function SendinblueApiV2::countUserlists in SendinBlue 7.2
Count all users of lists.
Parameters
array $listids: An array of lists.
Return value
int Number of users.
Overrides SendInBlueApiInterface::countUserlists
File
- includes/
Api/ SendinblueApiV2.php, line 263
Class
- SendinblueApiV2
- Sendinblue REST client.
Code
public function countUserlists(array $listids = []) {
$userLists = $this->sIBHttpClient
->post("list/display", drupal_json_encode([
'listids' => $listids,
]));
return $userLists['data']['total_list_records'];
}