postSetCommentSpamStatusWithHttpInfo method

Future<Response> postSetCommentSpamStatusWithHttpInfo(
  1. String tenantId,
  2. String commentId, [
  3. PostSetCommentSpamStatusOptions? options
])

Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}' operation and returns the Response. Parameters:

Implementation

Future<Response> postSetCommentSpamStatusWithHttpInfo(String tenantId, String commentId, [ PostSetCommentSpamStatusOptions? options ]) async {
  final spam = options?.spam;
  final permNotSpam = options?.permNotSpam;
  final broadcastId = options?.broadcastId;
  final sso = options?.sso;
  // ignore: prefer_const_declarations
  final path = r'/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}'
    .replaceAll('{commentId}', commentId);

  // ignore: prefer_final_locals
  Object? postBody;

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

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
  if (spam != null) {
    queryParams.addAll(_queryParams('', 'spam', spam));
  }
  if (permNotSpam != null) {
    queryParams.addAll(_queryParams('', 'permNotSpam', permNotSpam));
  }
  if (broadcastId != null) {
    queryParams.addAll(_queryParams('', 'broadcastId', broadcastId));
  }
  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,
  );
}