downloadBodyWithHttpInfo method
Get email body as string. Returned as plain/text
with content type header.
Returns the specified email body for a given email as a string
Note: This method returns the HTTP Response
.
Parameters:
- String emailId (required): ID of email
Implementation
Future<Response> downloadBodyWithHttpInfo(String emailId,) async {
// ignore: prefer_const_declarations
final path = r'/emails/{emailId}/body'
.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,
);
}