Forum Discussion

mfeltscher's avatar
11 years ago

Get latest replies to ratings

Hi there.

 

Is there a way to get the latest replies to ratings using the API?

 

 

Moreno

  • HaidongG's avatar
    HaidongG
    Lithium 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.

     

    • mfeltscher's avatar
      mfeltscher
      Expert

      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

      • HaidongG's avatar
        HaidongG
        Lithium 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