getTrustFactorWithHttpInfo method

Future<Response> getTrustFactorWithHttpInfo(
  1. String tenantId, [
  2. GetTrustFactorOptions? options
])

Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/get-trust-factor' operation and returns the Response. Parameters:

Implementation

Future<Response> getTrustFactorWithHttpInfo(String tenantId, [ GetTrustFactorOptions? options ]) async {
  final userId = options?.userId;
  final sso = options?.sso;
  // ignore: prefer_const_declarations
  final path = r'/auth/my-account/moderate-comments/mod_api/get-trust-factor';

  // ignore: prefer_final_locals
  Object? postBody;

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

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