Forum Discussion
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.
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
Related Content
- 7 months ago
- 7 months ago
- 3 years ago