brevo-php icon indicating copy to clipboard operation
brevo-php copied to clipboard

[BUG] `excludeHtmlContent` is not working

Open antoine1003 opened this issue 1 year ago • 0 comments

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.

antoine1003 avatar Dec 23 '24 11:12 antoine1003