I am sure I am missing something obvious today, as I just cannot work this out.
I am doing a REST call, to get all customers, paged at 100 results per page (forced limitation of max allowed per page = 100, ref:
Mage_Api2_Model_Resource::PAGE_SIZE_MAX = 100)
so simple enough to fetch each page using a page filter. ref: Get All customers from Magento using rest API
All good and well, but how do you know how many pages there are, or know when you have reached the last page?
I did a test, and when I reach the last page + 1, the result just seems to be the last page results.
Surely the test is not to check:
if current results == previous results = last page reached
Any thoughts appreciated.