waitForWithHttpInfo method
Wait for an email to match the provided filter conditions such as subject contains keyword.
Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met
Note: This method returns the HTTP Response
.
Parameters:
- WaitForConditions waitForConditions (required):
Implementation
Future<Response> waitForWithHttpInfo(WaitForConditions waitForConditions,) async {
// ignore: prefer_const_declarations
final path = r'/waitFor';
// ignore: prefer_final_locals
Object? postBody = waitForConditions;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}