createOAuthAppWithHttpInfo method
Register OAuth app
Register an OAuth 2.0 client application with Mattermost as the service provider. ##### Permissions Must have manage_oauth
permission.
Note: This method returns the HTTP Response
.
Parameters:
- MmCreateOAuthAppRequest mmCreateOAuthAppRequest (required): OAuth application to register
Implementation
Future<Response> createOAuthAppWithHttpInfo(
MmCreateOAuthAppRequest mmCreateOAuthAppRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/oauth/apps';
// ignore: prefer_final_locals
Object? postBody = mmCreateOAuthAppRequest;
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,
);
}