replyToEmailWithHttpInfo method

Future<Response> replyToEmailWithHttpInfo(
  1. String emailId,
  2. ReplyToEmailOptions replyToEmailOptions
)

Reply to an email

Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails to, cc, and bcc.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> replyToEmailWithHttpInfo(String emailId, ReplyToEmailOptions replyToEmailOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/emails/{emailId}'
    .replaceAll('{emailId}', emailId);

  // ignore: prefer_final_locals
  Object? postBody = replyToEmailOptions;

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

  const contentTypes = <String>['application/json'];


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