Forum Discussion

dustin's avatar
dustin
Expert
8 years ago

V2 API: How do I get author's kudo count for past month?

In the following code, I can retrieve the list of users who have kudos in the last month, then for each user I get their details to display them.   I wish to get the kudo count for each author, how...
  • DougS's avatar
    8 years ago

    You currently can't filter by time on the REST V2 kudos collection, however the REST V1 /kudos/authors/leaderboard call includes a kudos count that should be scoped to the time range you specified (in this case, the last month), and you could display that by adding this:

     

    <#assign userKudos = user.mixin.kudos.weight />

    -Doug