getFeedPostsPublicWithHttpInfo method

Future<Response> getFeedPostsPublicWithHttpInfo(
  1. String tenantId, {
  2. String? afterId,
  3. int? limit,
  4. List<String>? tags,
  5. String? sso,
  6. bool? isCrawler,
  7. bool? includeUserInfo,
})

req tenantId afterId

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> getFeedPostsPublicWithHttpInfo(String tenantId, { String? afterId, int? limit, List<String>? tags, String? sso, bool? isCrawler, bool? includeUserInfo, }) async {
  // 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,
  );
}