initSessionUsernamePassword method Null safety
Request a session token to uses other API endpoints using a username
and password
.
If getFullSession
is set to true, will also return the session details in session.
If sendInQuery
is set to true, will send the credentials in the query string instead of the header.
Will throw an Exception if the session can't be initialized.
Reference: https://github.com/glpi-project/glpi/blob/master/apirest.md#init-session.
Implementation
Future<Map<String, dynamic>> initSessionUsernamePassword(
String username, String password,
{bool getFullSession = false, bool sendInQuery = false});