getReactionsWithHttpInfo method

Future<Response> getReactionsWithHttpInfo(
  1. String postId
)

Get a list of reactions to a post

Get a list of reactions made by all users to a given post. ##### Permissions Must have read_channel permission for the channel the post is in.

Note: This method returns the HTTP Response.

Parameters:

  • String postId (required): ID of a post

Implementation

Future<Response> getReactionsWithHttpInfo(
  String postId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/posts/{post_id}/reactions'.replaceAll('{post_id}', postId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}