public function SendinblueApiV2::getList in SendinBlue 7.2
Get list by id.
Parameters
string $id: A list identification.
Return value
GetExtendedList An array of lists.
Overrides SendInBlueApiInterface::getList
File
- includes/
Api/ SendinblueApiV2.php, line 126
Class
- SendinblueApiV2
- Sendinblue REST client.
Code
public function getList($id) {
$list = $this->sIBHttpClient
->get("list/" . $id, "");
return new GetExtendedList([
'id' => $list['data']['id'],
'name' => $list['data']['name'],
'totalSubscribers' => $list['data']['total_subscribers'],
'totalBlacklisted' => $list['data']['total_blacklisted'],
'createdAt' => $list['data']['entered'],
'folderId' => $list['data']['list_parent'],
'dynamicList' => $list['data']['dynamic_list'],
]);
}