getOAuthAppInfoWithHttpInfo method

Future<Response> getOAuthAppInfoWithHttpInfo(
  1. String appId
)

Get info on an OAuth app

Get public information about an OAuth 2.0 client application registered with Mattermost. The application's client secret will be blanked out. ##### Permissions Must be authenticated.

Note: This method returns the HTTP Response.

Parameters:

  • String appId (required): Application client id

Implementation

Future<Response> getOAuthAppInfoWithHttpInfo(
  String appId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/oauth/apps/{app_id}/info'.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,
  );
}