getPrivateChannelsForTeamWithHttpInfo method
Get private channels
Get a page of private channels on a team based on query string parameters - team_id, page and per_page. Minimum server version: 5.26 ##### Permissions Must have manage_system
permission.
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> getPrivateChannelsForTeamWithHttpInfo(
String teamId, {
int? page,
int? perPage,
}) async {
// ignore: prefer_const_declarations
final path = r'/teams/{team_id}/channels/private'.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,
);
}