Listing threads on category level
Hi,
I am new to RESTApi so this may be a silly question :)
We want to display the thread links underneath the board titles on the category pages. So instead of just listing the boards, each one would also have the threads under them as well. It's for a quieter category which is being used for a focus group (so won't be there forever) and it won't have hundreds of threads there.
I have been looking at the coding here which shows the latest message:
I can't find anything that will list more than the latest message. I also don't want the latest message - I want the topic/thread. Is that possible with REST?
Thanks,
Lorna
Hi Lorna -
Yes, you can get the latests threads or topics (topics and threads are pretty similar). This call will get you the latest topics in your category
/[community-name]/restapi/vc/categories/id/[category-id]/topics/recent?page=1&page_size=10
This is saying: in my category, [category-id], get me the 10 most recent topics.
Here is a live example from this site: