D
D
Dmitry Shelygin2018-12-01 03:02:24
API
Dmitry Shelygin, 2018-12-01 03:02:24

How to get all values ​​from ***.list methods when working with Bitrix24 API?

REST API Bitrix24 returns 50 requested elements.
How can I get the rest of the records using PHP?
Something like the next() method

$queryUrl = 'https://' . HomeController::DOMAIN . '.bitrix24.ru/rest/71/' . $token . '/crm.company.list.json';
        
        $curl = curl_init();
        curl_setopt_array($curl, array(
            CURLOPT_SSL_VERIFYPEER => 0,
            CURLOPT_POST => 1,
            CURLOPT_HEADER => 0,
            CURLOPT_RETURNTRANSFER => 1,
            CURLOPT_URL => $queryUrl,
        ));

        $result = curl_exec($curl);
        curl_close($curl);

        $result = json_decode($result, 1);

        dd($result);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
andxbes, 2019-02-06
@andxbes

In the body of the request, specify the parameters
"start"=>"50" a multiple of 50 or 2*50 , 3*50

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question