getGroupsAssociatedToChannelsByTeamWithHttpInfo method
Get team groups by channels
Retrieve the set of groups associated with the channels in the given team grouped by channel. ##### Permissions Must have manage_system
permission or can access only for current user Minimum server version: 5.11
Note: This method returns the HTTP Response
.
Parameters:
-
String teamId (required): Team GUID
-
int page: The page to select.
-
int perPage: The number of groups per page.
-
bool filterAllowReference: Boolean which filters in the group entries with the
allow_reference
attribute set. -
bool paginate: Boolean to determine whether the pagination should be applied or not
Implementation
Future<Response> getGroupsAssociatedToChannelsByTeamWithHttpInfo(
String teamId, {
int? page,
int? perPage,
bool? filterAllowReference,
bool? paginate,
}) async {
// ignore: prefer_const_declarations
final path = r'/teams/{team_id}/groups_by_channels'.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));
}
if (filterAllowReference != null) {
queryParams.addAll(_queryParams('', 'filter_allow_reference', filterAllowReference));
}
if (paginate != null) {
queryParams.addAll(_queryParams('', 'paginate', paginate));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}