Instagram-PHP-API icon indicating copy to clipboard operation
Instagram-PHP-API copied to clipboard

Pagination fixed and a better limit parameter handling.

Open coreequip opened this issue 9 years ago • 3 comments

The pagination is fixed. There were issues because of different naming of the JSON-properties.

Due the need of using additional parameters on several functions the "_setLimit" helperfunction was introduces. Less redundant code makes also the maintenance easier.

coreequip avatar May 31 '15 10:05 coreequip

Thank you @coreequip for this update. The pagination works with the given example in the readme however we can not get more than 33 pictures.

Also, with $instagram->searchMedia it doesn't work at all "Undefined property: stdClass::$pagination".

Any idea?

Thanks in advance.

StephaneTurquay avatar May 31 '15 10:05 StephaneTurquay

You talking about this endpoint? This function doesn't support pagination. So here is the fix for Instagram-PHP-API.

coreequip avatar May 31 '15 14:05 coreequip

Yes i was talking about this one but also about GET/tags/tag-name/media/recent.

StephaneTurquay avatar May 31 '15 14:05 StephaneTurquay