Answer the question
In order to leave comments, you need to log in
How to make pagination for requests to Rest-API bitrix24?
I can't figure out from the documentation how I can do pangination.
I need to unload all portal users. Only 50 will be uploaded, since Bitrix has limitations,
I make the following request
https://my-portal.bitrix24.ru/rest/18/{Token}/user.get
Everything is ok. 50 users are being uploaded, what kind of request should be in order to get the second page?
I already tried this
https://my-portal.bitrix24.ru/rest/18/{Token}/user...
Answer the question
In order to leave comments, you need to log in
You can specify a starting position that is a multiple of 50 in the request via start.
For your example like this:
https://my-portal.bitrix24.ru/rest/18/{Token}/user.get?start=50
This is done through batch where the start and end of the sampling interval are set. All this is packaged into request packets and transmitted via the REST API.
See how it is implemented in the Opencart + Bitrix 24 module
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question