getBanUsersFromCommentWithHttpInfo method

Future<Response> getBanUsersFromCommentWithHttpInfo(
  1. String commentId, {
  2. String? sso,
})

Performs an HTTP 'GET /auth/my-account/moderate-comments/ban-users/from-comment/{commentId}' operation and returns the Response. Parameters:

Implementation

Future<Response> getBanUsersFromCommentWithHttpInfo(String commentId, { String? sso, }) async {
  // ignore: prefer_const_declarations
  final path = r'/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}'
    .replaceAll('{commentId}', commentId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  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,
  );
}