loginByCwsTokenWithHttpInfo method
Auto-Login to Mattermost server using CWS token
CWS stands for Customer Web Server which is the cloud service used to manage cloud instances. ##### Permissions A Cloud license is required
Note: This method returns the HTTP Response
.
Parameters:
- MmLoginByCwsTokenRequest mmLoginByCwsTokenRequest (required): User authentication object
Implementation
Future<Response> loginByCwsTokenWithHttpInfo(
MmLoginByCwsTokenRequest mmLoginByCwsTokenRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/users/login/cws';
// ignore: prefer_final_locals
Object? postBody = mmLoginByCwsTokenRequest;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}