getDeletedChannelsForTeamWithHttpInfo method

Future<Response> getDeletedChannelsForTeamWithHttpInfo(
  1. String teamId, {
  2. int? page,
  3. int? perPage,
})

Get deleted channels

Get a page of deleted channels on a team based on query string parameters - team_id, page and per_page. Minimum server version: 3.10

Note: This method returns the HTTP Response.

Parameters:

  • String teamId (required): Team GUID

  • int page: The page to select.

  • int perPage: The number of public channels per page.

Implementation

Future<Response> getDeletedChannelsForTeamWithHttpInfo(
  String teamId, {
  int? page,
  int? perPage,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/teams/{team_id}/channels/deleted'.replaceAll('{team_id}', teamId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (page != null) {
    queryParams.addAll(_queryParams('', 'page', page));
  }
  if (perPage != null) {
    queryParams.addAll(_queryParams('', 'per_page', perPage));
  }

  const contentTypes = <String>[];

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