getFeedPostsPublicWithHttpInfo method
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,
);
}