getUserReactsPublicWithHttpInfo method

Future<Response> getUserReactsPublicWithHttpInfo(
  1. String tenantId, {
  2. List<String>? postIds,
  3. String? sso,
})

Performs an HTTP 'GET /feed-posts/{tenantId}/user-reacts' operation and returns the Response. Parameters:

Implementation

Future<Response> getUserReactsPublicWithHttpInfo(String tenantId, { List<String>? postIds, String? sso, }) async {
  // ignore: prefer_const_declarations
  final path = r'/feed-posts/{tenantId}/user-reacts'
    .replaceAll('{tenantId}', tenantId);

  // ignore: prefer_final_locals
  Object? postBody;

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

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