getSearchCommentsSummaryWithHttpInfo method

Future<Response> getSearchCommentsSummaryWithHttpInfo(
  1. String tenantId, [
  2. GetSearchCommentsSummaryOptions? options
])

Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/search/comments/summary' operation and returns the Response. Parameters:

Implementation

Future<Response> getSearchCommentsSummaryWithHttpInfo(String tenantId, [ GetSearchCommentsSummaryOptions? options ]) async {
  final value = options?.value;
  final filters = options?.filters;
  final searchFilters = options?.searchFilters;
  final sso = options?.sso;
  // ignore: prefer_const_declarations
  final path = r'/auth/my-account/moderate-comments/mod_api/search/comments/summary';

  // ignore: prefer_final_locals
  Object? postBody;

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

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
  if (value != null) {
    queryParams.addAll(_queryParams('', 'value', value));
  }
  if (filters != null) {
    queryParams.addAll(_queryParams('', 'filters', filters));
  }
  if (searchFilters != null) {
    queryParams.addAll(_queryParams('', 'searchFilters', searchFilters));
  }
  if (sso != null) {
    queryParams.addAll(_queryParams('', 'sso', sso));
  }

  const contentTypes = <String>[];


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