brevo-php
brevo-php copied to clipboard
[BUG] `excludeHtmlContent` is not working
When I am using the EmailCampainApi, if I pass true the the excludeHtmlContent is does not exclude html.
private function getSentEmailCampaigns(): ?GetEmailCampaigns
{
$res = null;
try {
$res = $this->emailCampaignsApi->getEmailCampaigns(
status: 'sent',
excludeHtmlContent: true,
);
} catch (ApiException $e) {
$this->logger->error($e->getMessage());
}
return $res;
}
I debugged and I saw that the excludeHtmlContent=true property is translated to excludeHtmlContent=1 and that's what it's not working.