Forum Discussion
6 Replies
- JakeR14 years agoKhoros Oracle
If you're making calls against the Community, Board, or Blog class, you can get the info you want. However, you have to use very specific methods (within the various classes) to get the information that you mention (Tags, Number of Replies, etc). Once you grab that information, you can store it and parse it however you like with your company's Search tool(s).
When we talk about what can actually be yielded through our API using the "Search" method, this is what you can get:
* Subject / title of post - <subject>
* Time-stamp - <post_time>
* URL to post (for hyperlink) – view_href attribute on <message>
* Author – <author>
* URL to author profile – view_href attribute on <author>
* Message Body – <body> (requires passing an additional parameter to the request - restapi.format_detail=full_list_element)
- DBurnell14 years agoGuide
Thanks Jake!
This is very helpful, and thanks forthe tip on the additional parameter for the message body.
I got these examples from Damian, just in case others would like to see some examples.
Top tags
<Community Domain>/<Community ID>/restapi/vc/tagging/tags/top/tags
Top tags related to a predefined tag in a category
<Community Domain>/<Community ID>/restapi/vc/categories/id/<Category ID>/tagging/for/tags/text/<Tag>/tags/related/top/tags
Top tags related to a predefined tag in a board
<Community Domain>/<Community ID>/restapi/vc/boards/id/<boardID>/tagging/for/tags/text/<Tag>/tags/related/top/tags
- JakeR14 years agoKhoros OracleAhh yes - This is good additional info.
I've nominated this thread for a future knowledge-base article.
BTW - I hope your project is coming along well. Darren,
Very cool! I've always wanted to see results pulled and displayed with priority for KB articles, then solved discussions...
By the category and board ID information, we should be able to determine if it is a KB or not - that's great. I think I see that this can also be used to filter results by language if you have multiple languages within a single instance of community.
Thanks for sharing what you are doing - awesome!
JakeR,
Maybe I've missed it, but is there a flag set that says a discussion thread has been solved - is an accepted solution?
Perhaps no, that you stipulated what was available via rest api for search. I just wondered since active cast seems to have some solution oriented selections, and that is based on the rest api, right?
Mark
- DBurnell14 years agoGuideKudos goes to Damian from Lithium support for providing these links.
- MLachapelle11 years agoHelper
As I can see, there is no way to search with the last_edit_time field instead of post_time?
Related Content
- 2 years ago
- 4 years ago