initSessionUserToken method Null safety
Request a session token to uses other API endpoints using a userToken
.
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>> initSessionUserToken(String userToken,
{bool getFullSession = false, bool sendInQuery = false});