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