Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Range in getAllItems method #78

Open
cyrakuse opened this issue Mar 15, 2023 · 0 comments
Open

Range in getAllItems method #78

cyrakuse opened this issue Mar 15, 2023 · 0 comments

Comments

@cyrakuse
Copy link

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 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant