postAdjustCommentVotesWithHttpInfo method
Future<Response>
postAdjustCommentVotesWithHttpInfo(
- String commentId,
- AdjustCommentVotesParams adjustCommentVotesParams, {
- String? sso,
Performs an HTTP 'POST /auth/my-account/moderate-comments/adjust-comment-votes/{commentId}' operation and returns the Response.
Parameters:
-
String commentId (required):
-
AdjustCommentVotesParams adjustCommentVotesParams (required):
-
String sso:
Implementation
Future<Response> postAdjustCommentVotesWithHttpInfo(String commentId, AdjustCommentVotesParams adjustCommentVotesParams, { String? sso, }) async {
// ignore: prefer_const_declarations
final path = r'/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}'
.replaceAll('{commentId}', commentId);
// ignore: prefer_final_locals
Object? postBody = adjustCommentVotesParams;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (sso != null) {
queryParams.addAll(_queryParams('', 'sso', sso));
}
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}