Forum Discussion

dustin's avatar
dustin
Expert
10 years ago

Top Kudo Authors rest API in freemarker

After digging around the community, it seems it is possible to get a list of the top kudoed authors for the last week...   http://lithosphere.lithium.com/lithium/restapi/vc/kudos/authors/leaderboar...
  • VarunGrazitti's avatar
    10 years ago

    dustin - Here you go:

     

     <#assign authors = rest("/kudos/authors/leaderboard?max_age=one_week").users />
    
      <#list authors.user as author>
            <div>${author.id}</div>
      </#list>

    You need to hit the root node, there was no author node, but the user node for this. I hope this helps.