setTrustFactorWithHttpInfo method
Performs an HTTP 'PUT /auth/my-account/moderate-comments/set-trust-factor' operation and returns the Response.
Parameters:
Implementation
Future<Response> setTrustFactorWithHttpInfo({ String? userId, String? trustFactor, String? sso, }) async {
// ignore: prefer_const_declarations
final path = r'/auth/my-account/moderate-comments/set-trust-factor';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (userId != null) {
queryParams.addAll(_queryParams('', 'userId', userId));
}
if (trustFactor != null) {
queryParams.addAll(_queryParams('', 'trustFactor', trustFactor));
}
if (sso != null) {
queryParams.addAll(_queryParams('', 'sso', sso));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}