keepsuit / laravel-zoho-campaigns

Manage Zoho Campaigns from Laravel
MIT License
1 stars 1 forks source link

Improved subscribers list fetching #23

Closed andreibaca closed 3 months ago

andreibaca commented 3 months ago

Optimise the subscribers method to use less queries to get all the contacts

andreibaca commented 3 months ago

So there was a bug when the subscribers number was exactly the same as range it would try to make another request that resulted in the exception: "Yet,There are no contacts in this list." I could not find a solution but to change the way the function works. I don't understand why the unit test is failing - the method works live with zoho.

cappuc commented 3 months ago

Hi @andreibaca

I've made some changes to your code:

Fix #24

andreibaca commented 3 months ago

I did not know about the 650 limit. Then if the $range param was null it could have been set to 650 instead of unlimited in this case.