getInboxSentEmails method
Get Inbox Sent Emails
Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead.
Parameters:
-
String inboxId (required):
-
int page: Optional page index in inbox sent email list pagination
-
int size: Optional page size in inbox sent email list pagination
-
String sort: Optional createdAt sort direction ASC or DESC
-
String searchFilter: Optional sent email search
-
DateTime since: Optional filter by sent after given date time
-
DateTime before: Optional filter by sent before given date time
Implementation
Future<PageSentEmailProjection?> getInboxSentEmails(String inboxId, { int? page, int? size, String? sort, String? searchFilter, DateTime? since, DateTime? before, }) async {
final response = await getInboxSentEmailsWithHttpInfo(inboxId, page: page, size: size, sort: sort, searchFilter: searchFilter, since: since, before: before, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PageSentEmailProjection',) as PageSentEmailProjection;
}
return null;
}