deleteReactionWithHttpInfo method
Remove a reaction from a post
Deletes a reaction made by a user from the given post. ##### Permissions Must be user or have manage_system
permission.
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> deleteReactionWithHttpInfo(
String userId,
String postId,
String emojiName,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{user_id}/posts/{post_id}/reactions/{emoji_name}'
.replaceAll('{user_id}', userId)
.replaceAll('{post_id}', postId)
.replaceAll('{emoji_name}', emojiName);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}