deleteFeedPostPublicWithHttpInfo method
Future<Response>
deleteFeedPostPublicWithHttpInfo(
- String tenantId,
- String postId, [
- DeleteFeedPostPublicOptions? options
Performs an HTTP 'DELETE /feed-posts/{tenantId}/{postId}' operation and returns the Response.
Parameters:
Implementation
Future<Response> deleteFeedPostPublicWithHttpInfo(String tenantId, String postId, [ DeleteFeedPostPublicOptions? options ]) async {
final broadcastId = options?.broadcastId;
final sso = options?.sso;
// ignore: prefer_const_declarations
final path = r'/feed-posts/{tenantId}/{postId}'
.replaceAll('{tenantId}', tenantId)
.replaceAll('{postId}', postId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (broadcastId != null) {
queryParams.addAll(_queryParams('', 'broadcastId', broadcastId));
}
if (sso != null) {
queryParams.addAll(_queryParams('', 'sso', sso));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}