deleteReactionWithHttpInfo method

Future<Response> deleteReactionWithHttpInfo(
  1. String userId,
  2. String postId,
  3. String emojiName
)

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:

  • String userId (required): ID of the user

  • String postId (required): ID of the post

  • String emojiName (required): emoji name

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,
  );
}