getTeamByNameWithHttpInfo method

Future<Response> getTeamByNameWithHttpInfo(
  1. String name
)

Get a team by name

Get a team based on provided name string ##### Permissions Must be authenticated, team type is open and have the view_team permission.

Note: This method returns the HTTP Response.

Parameters:

  • String name (required): Team Name

Implementation

Future<Response> getTeamByNameWithHttpInfo(
  String name,
) async {
  // ignore: prefer_const_declarations
  final path = r'/teams/name/{name}'.replaceAll('{name}', name);

  // 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,
  );
}