How can I extract latest topics across all TKB's within community?
I have to create two TKB components:
1. "Component will display all TKB articles and TKbs across the entire community".
How can I extract all TKB articles?
2. "Component will display the latest topics across all TKB's within the community."
How can I extract the latest TKB topics?
Thanks.
Hi iahiqosolutions,
I'm not sure I understand the distinction you're making between these two components. Is it just that #2 is sorted by post date where as #1 is not?
In either case, I'd suggest checking out the "posts/style/[style]/recent" REST API method:
The style you're interested in is "tkb", so your call would look something like:
/posts/style/tkb/recent
This will give you all of the posts in the "TKB" interaction style sorted by the date they were posted. If you just want the root messages (i.e. topics), there's also a "topics/style/[style]/recent" method:
Which would give you a call like:
/topics/style/tkb/recent
You can page through these results to get older articles as needed.
If you were looking for something different, please let us know.