getPostsByIdsWithHttpInfo method
Get posts by a list of ids
Fetch a list of posts based on the provided postIDs ##### Permissions Must have read_channel
permission for the channel the post is in or if the channel is public, have the read_public_channels
permission for the team.
Note: This method returns the HTTP Response
.
Parameters:
- List<String> requestBody (required): List of post ids
Implementation
Future<Response> getPostsByIdsWithHttpInfo(
List<String> requestBody,
) async {
// ignore: prefer_const_declarations
final path = r'/posts/ids';
// 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,
);
}