emptyInboxWithHttpInfo method

Future<Response> emptyInboxWithHttpInfo(
  1. String inboxId
)

Delete all emails in an inbox

Deletes all emails

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> emptyInboxWithHttpInfo(String inboxId,) async {
  // ignore: prefer_const_declarations
  final path = r'/emptyInbox';

  // ignore: prefer_final_locals
  Object? postBody;

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

    queryParams.addAll(_queryParams('', 'inboxId', inboxId));

  const contentTypes = <String>[];


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