Skip to main content

Queue Ordered

This service is used to retrieve records from the search table sequentially from the beginning to the end. The input parameter of this service is the record ID after which you want to retrieve the information. The output of the service will be the records from the table in order (20 records are returned sequentially per call).

Note

If you want to retrieve the table data from the beginning, set the id_ parameter to empty.

Note

The last_id parameter will be returned in the response and gives you the ID of the last retrieved record. To retrieve the next set of records (in order), use this ID as input again.

Parameters

DescriptionDefined DataSample DataRequired[*]/Optional[**]Parameters
Unique ID after which the records should be retrieved sequentially (last_id)5ddb9e925171cd0429088badid_

Sample Invocation

Show Full Source Code PHP

	<?php

$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => 'http://192.168.51.20/api/v4/reports/queue/ordered/id',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"_id":""
}',
CURLOPT_HTTPHEADER => array(
'X-APIKEY: 9UV0BWKRL83PYIH9Gv1fI85d41lO4S932EeX3wHC47sHjMJOMG',
'Authorization: Basic c2Fkcjo=',
'Content-Type: application/json'
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
?>