Forum Discussion

JackDunaway's avatar
13 years ago

Kudos Given Timestamp?

I'm using the method "/kudos/givers" of the "Message" class, and the response does not include the timestamp of each of the Kudos given. (The date the Kudos was given is configured to show on website's leaderboard, so I'm guessing the timestamp is available stored in the backend, just not yet exposed on the API response.) Is it possible to retrieve the timestamp the kudos was given, or include it as a mixin of the response of the "/kudos/givers" method? Thanks in advance!

 

As an example, here's a screenshot showing the time Kudos were given for the top Kudoed idea on the Lithosphere:

 

Screen Shot 2012-03-25 at 8.58.49 PM.png

  • Very tough question BUT, thanks to the dev team, I have an answer.  Try this, replacing the [board id] and [message id] placeholders with your values :

     

    /restapi/vc/boards/id/[board id]/messages/id/[message id]/kudos/givers/recent?restapi.response_style=all

     

     

     

    The important part here is the ?restapi.response_style=all at the end.  This is what gets you the kudos time.

  • KaelaC's avatar
    KaelaC
    Lithium Alumni (Retired)

    Very tough question BUT, thanks to the dev team, I have an answer.  Try this, replacing the [board id] and [message id] placeholders with your values :

     

    /restapi/vc/boards/id/[board id]/messages/id/[message id]/kudos/givers/recent?restapi.response_style=all

     

     

     

    The important part here is the ?restapi.response_style=all at the end.  This is what gets you the kudos time.

    • xorrkaz's avatar
      xorrkaz
      Genius

      Another awesome nugget.  I knew about the view value, but not the all.

       

      I also recently learned about using restapi.format_detail=full_list_element when pulling thread lists.  Are these nerd knobs documented?  If not, can they be documented in the TKB?  Thanks!

    • JackDunaway's avatar
      JackDunaway
      Mentor

      Awesome! Ultra-late response here (my email notifications must be off, or just got lost in the mix! this is just a hobby project I'll take a look at every few months), but thank you very much for following up!

       

      I can confirm that this parameter gives the desired result  <thumbsup />