Forum Discussion
BeckyS
Lithium Alumni (Retired)
Mmalre I checked internally and here's some additional information.
The answer to your question is: yes and no. We have LiQL, which is Lithium's query language, which can consolidate an entire thread, or you can get each one as an individual API call.
For example, fetch recently posted threads retrieves the five most recently posted to threads across the community.
<#assign apiVersion = “2.0”/> <#assign query = “SELECT id, body, subject, view_href, post_time, post_time_friendly, replies.count(*), kudos.sum(weight), author, board FROM messages WHERE depth=0 ORDER BY conversation.last_post_time DESC LIMIT 5" /> <#assign topics = rest(apiVersion, “/search?q=” + query?url).data.items![] /> <ul> <#list topics as message> <li><a href=“message.view_href”>message.subject</a> </#list> <ul>
So, all of that’s basically a single API call.
The LiQL documentation should help some more:
https://lithosphere.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&v2.main=liqlexamples#recentThreads
Related Content
- 8 months ago
- 10 months ago
- 2 years ago