doPostActionWithHttpInfo method

Future<Response> doPostActionWithHttpInfo(
  1. String postId,
  2. String actionId
)

Perform a post action

Perform a post action, which allows users to interact with integrations through posts. ##### Permissions Must be authenticated and have the read_channel permission to the channel the post is in.

Note: This method returns the HTTP Response.

Parameters:

  • String postId (required): Post GUID

  • String actionId (required): Action GUID

Implementation

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

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];

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