public function SendinblueApiV2::countUserlists in SendinBlue 8
Same name and namespace in other branches
- 8.2 src/Tools/Api/SendinblueApiV2.php \Drupal\sendinblue\Tools\Api\SendinblueApiV2::countUserlists()
Count all users of lists.
Parameters
array $listids: An array of lists.
Return value
int Number of users.
Overrides SendInBlueApiInterface::countUserlists
File
- src/
Tools/ Api/ SendinblueApiV2.php, line 314
Class
- SendinblueApiV2
- Sendinblue REST client.
Namespace
Drupal\sendinblue\Tools\ApiCode
public function countUserlists(array $listids = []) {
$userLists = $this->sIBHttpClient
->post("list/display", Json::encode([
'listids' => $listids,
]));
return $userLists['data']['total_list_records'];
}