Forum Discussion

henaffma's avatar
henaffma
Contributor
13 years ago

get topics list instead of threads list

Hi,

 

I'm new to lithium rest api.

 

I currently perform both successful requests :

 

http://mycommunity.lithium.com/restapi/vc/boards/id/myBoardId/threads/for/message_statuses/id/9/recent

 

http://mycommunity.lithium.com/restapi/vc/boards/id/myBoardId/threads/popular

 

But actually, I don't need full thread because I only display topics titles.

How can I get only topics list, instead of threads list ? When I replace "threads" by "topics" in the request url above, it doesn't work.

 

Any advice ?

Thanks,

henaffma

1 Reply

  • AdamN's avatar
    AdamN
    Khoros Oracle
    13 years ago

    Hi henaffma,

     

    In Lithium, topics and threads are essentially different names for the same thing: a collection of a root post and all its subsequent replies. Years ago, they were called "threads", but were eventually changed to "topics". The title that you're referring to is called the "subject" in our system.

     

    Unfortunately, there's no REST API call to get just a list of topic/thread subjects; however, you should be able to easily obtain that information from the sample REST API calls you provided. It's just a matter of iterating through the different topics/threads and getting the subject for each.

     

    Regards,