getFeedPostsPublicWithHttpInfo method

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

req tenantId afterId

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> getFeedPostsPublicWithHttpInfo(String tenantId, [ GetFeedPostsPublicOptions? options ]) async {
  final afterId = options?.afterId;
  final limit = options?.limit;
  final tags = options?.tags;
  final sso = options?.sso;
  final isCrawler = options?.isCrawler;
  final includeUserInfo = options?.includeUserInfo;
  // ignore: prefer_const_declarations
  final path = r'/feed-posts/{tenantId}'
    .replaceAll('{tenantId}', tenantId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (afterId != null) {
    queryParams.addAll(_queryParams('', 'afterId', afterId));
  }
  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }
  if (tags != null) {
    queryParams.addAll(_queryParams('multi', 'tags', tags));
  }
  if (sso != null) {
    queryParams.addAll(_queryParams('', 'sso', sso));
  }
  if (isCrawler != null) {
    queryParams.addAll(_queryParams('', 'isCrawler', isCrawler));
  }
  if (includeUserInfo != null) {
    queryParams.addAll(_queryParams('', 'includeUserInfo', includeUserInfo));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}