glpi-project / php-library-glpi

GLPI API Client Library for PHP
https://glpi-project.github.io/php-library-glpi/
GNU General Public License v3.0
25 stars 21 forks source link

Range in getAllItems method #78

Open cyrakuse opened 1 year ago

cyrakuse commented 1 year ago

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 ?