getOAuthAppWithHttpInfo method

Future<Response> getOAuthAppWithHttpInfo(
  1. String appId
)

Get an OAuth app

Get an OAuth 2.0 client application registered with Mattermost. ##### Permissions If app creator, must have mange_oauth permission otherwise manage_system_wide_oauth permission is required.

Note: This method returns the HTTP Response.

Parameters:

  • String appId (required): Application client id

Implementation

Future<Response> getOAuthAppWithHttpInfo(
  String appId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/oauth/apps/{app_id}'.replaceAll('{app_id}', appId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}