getbrevo / brevo-php

A fully-featured PHP API client to interact with Brevo.
https://developers.brevo.com/
MIT License
51 stars 23 forks source link

[Feature Request] - Additional filters for Brevo\Client\Api\ContactsApi->getContacts() would be nice. #17

Closed rickymathewk closed 8 months ago

rickymathewk commented 11 months ago

It would be great, if there are some additional filters at Brevo\Client\Api\ContactsApi->getContacts() [endpoint GET api.brevo.com/v3/contacts ]. For instance , if it is able to filter with brevo contact "attributes" , then it avoids additional processing based on "attributes" , once all the contacts are fetched.

preetishishodia7 commented 8 months ago

Hi
@rickymathewk

Currently, we do not have a feature to filter contacts based on attributes. You can refer to this document for a list of all the supported filters. We will discuss this with our product team to determine its feasibility, and we will keep you informed of any updates on this matter.

Thank you for your understanding and patience!

kampalex commented 4 months ago

Hello @preetishishodia7

Method getContacts() in Brevo\Client\Api\ContactsApi doesn't take the filters argument, so the request can't be executed by this API client. +1 for the feature request @rickymathewk filtering on additional attributes. Currently, only equals is supported, but the app.brevo.com environment offers more operators.