getRawSentEmailJsonWithHttpInfo method

Future<Response> getRawSentEmailJsonWithHttpInfo(
  1. String emailId
)

Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format.

Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response

Note: This method returns the HTTP Response.

Parameters:

  • String emailId (required): ID of email

Implementation

Future<Response> getRawSentEmailJsonWithHttpInfo(String emailId,) async {
  // ignore: prefer_const_declarations
  final path = r'/sent/{emailId}/raw/json'
    .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,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}