getAllSharedChannelsWithHttpInfo method
Get all shared channels for team.
Get all shared channels for a team. Minimum server version: 5.50 ##### Permissions Must be authenticated.
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> getAllSharedChannelsWithHttpInfo(
String teamId, {
int? page,
int? perPage,
}) async {
// ignore: prefer_const_declarations
final path = r'/sharedchannels/{team_id}'.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,
);
}