php-library-glpi icon indicating copy to clipboard operation
php-library-glpi copied to clipboard

Range in getAllItems method

Open cyrakuse opened this issue 1 year ago • 0 comments

Hi,

I try to use the getAllItems method but i can't use range option. My code is : `$client = new Glpi\Api\Rest\Client(URL_GLPI.'/apirest.php/', new GuzzleHttp\Client()); $client->setAppToken(GLPI_APPTOKEN); $client->initSessionByCredentials(GLPI_USER, GLPI_PASS); $itemHandler = new \Glpi\Api\Rest\ItemHandler($client);

$response = $itemHandler->getAllItems("user",array("'range'=>'0-500'")); `

If i use 0-500 range or 0-10 range, i always obtain the same result with statusCode 206 for partial result.

Any idea ?

cyrakuse avatar Mar 15 '23 14:03 cyrakuse