postSetCommentReviewStatusWithHttpInfo method

Future<Response> postSetCommentReviewStatusWithHttpInfo(
  1. String commentId, {
  2. bool? reviewed,
  3. String? sso,
})

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

Implementation

Future<Response> postSetCommentReviewStatusWithHttpInfo(String commentId, { bool? reviewed, String? sso, }) async {
  // ignore: prefer_const_declarations
  final path = r'/auth/my-account/moderate-comments/set-comment-review-status/{commentId}'
    .replaceAll('{commentId}', commentId);

  // ignore: prefer_final_locals
  Object? postBody;

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

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