validateEmailWithHttpInfo method

Future<Response> validateEmailWithHttpInfo(
  1. String emailId
)

Validate email HTML contents

Validate the HTML content of email if HTML is found. Considered valid if no HTML is present.

Note: This method returns the HTTP Response.

Parameters:

  • String emailId (required): ID of email

Implementation

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

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  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,
  );
}