getUsersByGroupChannelIdsWithHttpInfo method

Future<Response> getUsersByGroupChannelIdsWithHttpInfo(
  1. List<String> requestBody
)

Get users by group channels ids

Get an object containing a key per group channel id in the query and its value as a list of users members of that group channel. The user must be a member of the group ids in the query, or they will be omitted from the response. ##### Permissions Requires an active session but no other permissions. Minimum server version: 5.14

Note: This method returns the HTTP Response.

Parameters:

  • List<String> requestBody (required): List of group channel ids

Implementation

Future<Response> getUsersByGroupChannelIdsWithHttpInfo(
  List<String> requestBody,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/group_channels';

  // ignore: prefer_final_locals
  Object? postBody = requestBody;

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

  const contentTypes = <String>['application/json'];

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