postApiExportWithHttpInfo method

Future<Response> postApiExportWithHttpInfo({
  1. String? textSearch,
  2. String? byIPFromComment,
  3. String? filters,
  4. String? searchFilters,
  5. String? sorts,
  6. String? sso,
})

Performs an HTTP 'POST /auth/my-account/moderate-comments/api/export' operation and returns the Response. Parameters:

Implementation

Future<Response> postApiExportWithHttpInfo({ String? textSearch, String? byIPFromComment, String? filters, String? searchFilters, String? sorts, String? sso, }) async {
  // ignore: prefer_const_declarations
  final path = r'/auth/my-account/moderate-comments/api/export';

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (textSearch != null) {
    queryParams.addAll(_queryParams('', 'text-search', textSearch));
  }
  if (byIPFromComment != null) {
    queryParams.addAll(_queryParams('', 'byIPFromComment', byIPFromComment));
  }
  if (filters != null) {
    queryParams.addAll(_queryParams('', 'filters', filters));
  }
  if (searchFilters != null) {
    queryParams.addAll(_queryParams('', 'searchFilters', searchFilters));
  }
  if (sorts != null) {
    queryParams.addAll(_queryParams('', 'sorts', sorts));
  }
  if (sso != null) {
    queryParams.addAll(_queryParams('', 'sso', sso));
  }

  const contentTypes = <String>[];


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