K
K
kotik21452016-03-22 16:22:34
Classmates
kotik2145, 2016-03-22 16:22:34

How to implement pagination of photos.getPhotos result?

Can't display more than 100 results
The method has parameters anchor Paging ID and direction Paging direction
How to use them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery Ozhiganov, 2016-03-22
@vozhiganov

https://apiok.ru/wiki/display/api/anchor%2C+direct...
The request comes with an anchor and usually has_more.
If has_more = true or it doesn't exist, but the records in the previous request are returned, then we add the anchor parameter to the request with the value from the previous response and make a new request.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question