Quote:
Originally Posted by Soptareanu @Alex
I tested and it works very well. Now I have another issue. Because I have very much products and productvariants, sometimes I get an 500 error because the server takes much time to respond. I want to create a tool that pull products from API in batches but for that I need instead reciving all products, get only number of rows. Is there a posibility to do that ? By default convertModel() function fetching result for each rows of entity.
|
Did you try using _cnd[limit] in your request as explained here:
https://devs.x-cart.com/rest-api/#limiting-the-output-pagination
Just add something like _cnd[limit][0]=0&_cnd[limit][1]=100 to your request and it will pull batches of entities instead of all.