waitForLatestSmsWithHttpInfo method

Future<Response> waitForLatestSmsWithHttpInfo(
  1. WaitForSingleSmsOptions waitForSingleSmsOptions
)

Wait for the latest SMS message to match the provided filter conditions such as body contains keyword.

Wait until a phone number meets given conditions or return immediately if already met

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> waitForLatestSmsWithHttpInfo(WaitForSingleSmsOptions waitForSingleSmsOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/waitForLatestSms';

  // ignore: prefer_final_locals
  Object? postBody = waitForSingleSmsOptions;

  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,
  );
}