getChannelMembersByIdsWithHttpInfo method
Get channel members by ids
Get a list of channel members based on the provided user ids. ##### Permissions Must have the read_channel
permission.
Note: This method returns the HTTP Response
.
Parameters:
-
String channelId (required): Channel GUID
-
List<String> requestBody (required): List of user ids
Implementation
Future<Response> getChannelMembersByIdsWithHttpInfo(
String channelId,
List<String> requestBody,
) async {
// ignore: prefer_const_declarations
final path = r'/channels/{channel_id}/members/ids'.replaceAll('{channel_id}', channelId);
// 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,
);
}