saveReactionWithHttpInfo method
Create a reaction
Create a reaction. ##### Permissions Must have read_channel
permission for the channel the post is in.
Note: This method returns the HTTP Response
.
Parameters:
- MmReaction mmReaction (required): The user's reaction with its post_id, user_id, and emoji_name fields set
Implementation
Future<Response> saveReactionWithHttpInfo(
MmReaction mmReaction,
) async {
// ignore: prefer_const_declarations
final path = r'/reactions';
// ignore: prefer_final_locals
Object? postBody = mmReaction;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}