getPostWithHttpInfo method
Get a post
Get a single post. ##### 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:
Implementation
Future<Response> getPostWithHttpInfo(
String postId, {
bool? includeDeleted,
}) async {
// ignore: prefer_const_declarations
final path = r'/posts/{post_id}'.replaceAll('{post_id}', postId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (includeDeleted != null) {
queryParams.addAll(_queryParams('', 'include_deleted', includeDeleted));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}