waitForDeliveryStatusesWithHttpInfo method
Wait for delivery statuses
Note: This method returns the HTTP Response
.
Parameters:
-
String sentId: Optional sent email ID filter
-
String inboxId: Optional inbox ID filter
-
int timeout: Optional timeout milliseconds
-
int index: Zero based index of the delivery status to wait for. If 1 delivery status already and you want to wait for the 2nd pass index=1
-
DateTime since: Filter by created at after the given timestamp
-
DateTime before: Filter by created at before the given timestamp
Implementation
Future<Response> waitForDeliveryStatusesWithHttpInfo({ String? sentId, String? inboxId, int? timeout, int? index, DateTime? since, DateTime? before, }) async {
// ignore: prefer_const_declarations
final path = r'/sent/delivery-status/wait-for';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (sentId != null) {
queryParams.addAll(_queryParams('', 'sentId', sentId));
}
if (inboxId != null) {
queryParams.addAll(_queryParams('', 'inboxId', inboxId));
}
if (timeout != null) {
queryParams.addAll(_queryParams('', 'timeout', timeout));
}
if (index != null) {
queryParams.addAll(_queryParams('', 'index', index));
}
if (since != null) {
queryParams.addAll(_queryParams('', 'since', since));
}
if (before != null) {
queryParams.addAll(_queryParams('', 'before', before));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}