doesInboxExistWithHttpInfo method

Future<Response> doesInboxExistWithHttpInfo(
  1. String emailAddress, {
  2. bool? allowCatchAll,
})

Does inbox exist

Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses

Note: This method returns the HTTP Response.

Parameters:

  • String emailAddress (required): Email address

  • bool allowCatchAll:

Implementation

Future<Response> doesInboxExistWithHttpInfo(String emailAddress, { bool? allowCatchAll, }) async {
  // ignore: prefer_const_declarations
  final path = r'/inboxes/exists';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

    queryParams.addAll(_queryParams('', 'emailAddress', emailAddress));
  if (allowCatchAll != null) {
    queryParams.addAll(_queryParams('', 'allowCatchAll', allowCatchAll));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}