S
S
Shato Daltsaev2019-01-30 11:59:32
RESTful API
Shato Daltsaev, 2019-01-30 11:59:32

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

2 answer(s)
A
ArmBar, 2019-01-30
@ArmBar

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

A
api-pro.com, 2019-07-23
@apipro

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 question

Ask a Question

731 491 924 answers to any question