Forum Discussion
7 Replies
- HaidongG11 years agoLithium Alumni (Retired)
Hi mfeltscher ,
the rating is also part of the message, so the replies to rating are replies in a thread too.
for example, https://<your domain>/m/reviews/productpage/message-uid/117646/product-uid/3284 is the rating page, from the url, it tells you that the message id 117646.
then you can check https://<your domain>/restapi/vc/messages/id/117646, you will see
<thread type="thread" href="/threads/id/39436"/>
With that, https://<your domain>/restapi/vc/threads/id/39436/messages/latest, will give you the newest message (comment) in the thread.
I have that my illustration helps.
- mfeltscher11 years agoExpert
Hi HaidongG
Well, this is not what I'm trying to do.
What I want is a list of the latest comments / replies to ratings across all ratings in the community. I couldn't find an API call to achieve this.
Is this even possible?
Moreno
- HaidongG11 years agoLithium Alumni (Retired)
Hi mfeltscher
Thanks a lot for explaining your requirement.
check out https://<your domain>/restapi/vc/reviews/recent/messages , I guess that this is what you are looking for
you may read more from API docs
- mfeltscher11 years agoExpert
Hi HaidongG
This is what I tried in the first place but this API call does not work.
Acutally the call returns exactely the same data as https://<your domain>/restapi/vc/reviews/recent. No comments to ratings get returned, only ratings.
Is this a bug?
Moreno
- HaidongG11 years agoLithium Alumni (Retired)
Hi mfeltscher ,
do you mean https://<your domain>/restapi/vc/reviews/recent returns the messages with subjects only, but not message body?
you need to add some parameter to see the message body, for example
https:///restapi/vc/reviews/recent/messages?restapi.format_detail=full_list_element
- mfeltscher11 years agoExpert
Hi HaidongG
No. I'm aware of restapi.format_detail=full_list_element. What I want to achieve is to get the most recent comments (not ratings) to all ratings across the community. https://restapi/vc/reviews/recent/messages returns the most recent ratings.
This is possible for example for blog comments (by using something like https://restapi/vc/replies/style/blog/recent, why shouldn't it be possible for rating comments?
Moreno
- JustinF11 years agoKhoros Expert
Unfortunately, recent "Review-Comments" to "Product Reviews" is not displayed in any core components that I am aware of (only a recent Product Reviews component for the landing page and the User Profile page is what is surfaced as product information on community pages). Review-Comments are only being displayed in the R&R ActiveCast widget.
Roping in ShananD for visibility as currently there is not a direct way to get only the latest comments to Product Reviews.
Also notifing JeffY as perhaps it could evenutally be handled by the new V2 Rest API?
Related Content
- 10 months ago
- 10 months ago
- 3 years ago