getPublicChannelsByIdsForTeamWithHttpInfo method
Get a list of channels by ids
Get a list of public channels on a team by id. ##### Permissions view_team
for the team the channels are on.
Note: This method returns the HTTP Response
.
Parameters:
-
String teamId (required): Team GUID
-
List<String> requestBody (required): List of channel ids
Implementation
Future<Response> getPublicChannelsByIdsForTeamWithHttpInfo(
String teamId,
List<String> requestBody,
) async {
// ignore: prefer_const_declarations
final path = r'/teams/{team_id}/channels/ids'.replaceAll('{team_id}', teamId);
// 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,
);
}