Forum Discussion
Thanks again VikasB. It does not really answer my question unfortunately.
What I need to know is:
Is every new case 1 API and only 1 API call?
Is every new comment 1 API call and only 1 API call?
Is a response on a comment 1 API call or more?
Is every case update 1 API call and only 1 API call?
In what other areas will API calls be sent, and is their ratio the same? Aka one insert/update/delete = 1 call
Thanks again
-Matt
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