larabros / elogram

An "eloquent" way of accessing Instagram's API, for PHP 5.5+.
http://elogram.rtfd.org/
MIT License
90 stars 11 forks source link

Optional merging for pagination #37

Open rockfridrich opened 8 years ago

rockfridrich commented 8 years ago

It will be suitable for AJAX pagination if package will not be merging results of pagination with root response.

If we request 20 images and the use pagination on response object with N pages as second parameter we need to get N_20 images and not N_20 + 20 (from 1 response)

We can add optional boolean parameter to paginate function

hassankhan commented 8 years ago

Yeah that could be done, the idea was to implement that using generators but I haven't had time.