crisp-im / php-crisp-api

:elephant: Crisp API PHP Wrapper
https://docs.crisp.chat/guides/rest-api/
MIT License
56 stars 28 forks source link

Allow filtering data in getList() #15

Closed leo-unglaub closed 3 years ago

leo-unglaub commented 5 years ago

Hey, i am working on a little cli script that automates some tasks for a customer of mine and it would be very useful if i could supply filters as a third argument on the CrispClient->websiteConversations->getList(websiteId, page) function. That way we could only get the data we need from the server and did not have to pull down all the data all the time. This would also be good for you, because it would greatly reduce the number of API requests send to your server.

Thanks and greetings Leo

leo-unglaub commented 5 years ago

According to this document here (https://docs.crisp.chat/api/v1/#website-website-conversations-get) there is already logic in place to filter requests, but its not possible to pass it to the function.

valeriansaliou commented 5 years ago

@baptistejamin