initSession method Null safety
Request a session token to uses other API endpoints.
The token will be stored in the sessionToken field automatically and used for all the following requests.
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<String> initSession(
{bool getFullSession = false, bool sendInQuery = false});