deleteSmsMessagesWithHttpInfo method

Future<Response> deleteSmsMessagesWithHttpInfo({
  1. String? phoneNumberId,
})

Delete all SMS messages

Delete all SMS messages or all messages for a given phone number

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> deleteSmsMessagesWithHttpInfo({ String? phoneNumberId, }) async {
  // ignore: prefer_const_declarations
  final path = r'/sms';

  // ignore: prefer_final_locals
  Object? postBody;

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

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

  const contentTypes = <String>[];


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