getFeedPostsWithHttpInfo method

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

req tenantId afterId

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> getFeedPostsWithHttpInfo(String tenantId, [ GetFeedPostsOptions? options ]) async {
  final afterId = options?.afterId;
  final limit = options?.limit;
  final tags = options?.tags;
  // ignore: prefer_const_declarations
  final path = r'/api/v1/feed-posts';

  // ignore: prefer_final_locals
  Object? postBody;

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

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
  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));
  }

  const contentTypes = <String>[];


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