searchGroupChannelsWithHttpInfo method

Future<Response> searchGroupChannelsWithHttpInfo(
  1. MmSearchGroupChannelsRequest mmSearchGroupChannelsRequest
)

Search Group Channels

Get a list of group channels for a user which members' usernames match the search term. Minimum server version: 5.14

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> searchGroupChannelsWithHttpInfo(
  MmSearchGroupChannelsRequest mmSearchGroupChannelsRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/channels/group/search';

  // ignore: prefer_final_locals
  Object? postBody = mmSearchGroupChannelsRequest;

  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,
  );
}