You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
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);
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 ?
The text was updated successfully, but these errors were encountered: