Forum Discussion
PaoloT
12 years agoLithium Alumni (Retired)
Hi Jillian,
did you have any specific issues with the calls you tried (errors etc...) or was it more a case of not finding the correct call?
In general - you can feature topics/threads within nodes. So for instance you can have a list of featured threads for :
- A blog : http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api?leaf-id=Blog.threads#Blog.threads.featured
- A board : http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api?leaf-id=Board.threads#Board.threads.featured
- A category : http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api?leaf-id=Category.threads.featured#Category.threads.featured
- Or even the community : http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api?leaf-id=Community.threads.featured#Community.threads.featured
Normally you can also retrieve the count of featured topics (by adding /count at the end of the call) and use the paging parameters to control how many of them you want returned and so on.
For example for the community you could use:
http://mycommunity.brand.com/restapi/vc/threads/featured/count
To get a count of the featured threads for mycommunity or
http://mycommunity.brand.com/restapi/vc/threads/featured?page_size=3
To get the first three featured threads
Hope that will help in getting started!