getArchiveMessageContent method
Future<GetArchiveMessageContentResponse>
getArchiveMessageContent({
- required String archivedMessageId,
Returns the textual content of a specific email message stored in the archive. Attachments are not included.
May throw AccessDeniedException.
May throw ThrottlingException.
May throw ValidationException.
Parameter archivedMessageId :
The unique identifier of the archived email message.
Implementation
Future<GetArchiveMessageContentResponse> getArchiveMessageContent({
required String archivedMessageId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'MailManagerSvc.GetArchiveMessageContent'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ArchivedMessageId': archivedMessageId,
},
);
return GetArchiveMessageContentResponse.fromJson(jsonResponse.body);
}