waitForSmsWithHttpInfo method
Wait for an SMS message to match the provided filter conditions such as body contains keyword.
Generic waitFor method that will wait until a phone number meets given conditions or return immediately if already met
Note: This method returns the HTTP Response
.
Parameters:
- WaitForSmsConditions waitForSmsConditions (required):
Implementation
Future<Response> waitForSmsWithHttpInfo(WaitForSmsConditions waitForSmsConditions,) async {
// ignore: prefer_const_declarations
final path = r'/waitForSms';
// ignore: prefer_final_locals
Object? postBody = waitForSmsConditions;
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,
);
}