class Client
Class Client
Client constructor.
Set an application token to be used for each request
Initialize a session with user credentials
initialize a session with a user token
Kill client session.
Prepare and send a request to the GLPI Api.
Return the current php $_SESSION.
Return the current $CFG_GLPI.
Allows to request password recovery.
Allows to request a password reset.
__construct(string $url, Client $httpClient)
setAppToken(string $appToken = null)
boolean initSessionByCredentials(string $user, string $password)
boolean initSessionByUserToken(string $userToken)
bool killSession()
mixed|null|ResponseInterface request($method, $uri, array $options = [])
array getFullSession()
array getGlpiConfig()
array recoveryPassword(string $email)
This endpoint works under the following conditions: - GLPI has notifications enabled - The email address of the user belongs to a user account.
array resetPassword($email, string $recoveryToken, string $newPassword)