getRawEmailJsonWithHttpInfo method
Get raw email in JSON. Unparsed SMTP message in JSON wrapper format.
Returns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response
Note: This method returns the HTTP Response
.
Parameters:
- String emailId (required): ID of email
Implementation
Future<Response> getRawEmailJsonWithHttpInfo(String emailId,) async {
// ignore: prefer_const_declarations
final path = r'/emails/{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,
);
}