Forum Discussion

id-chalmers's avatar
11 years ago

max limit on kudos/givers ?

I'm using the rest API to get an array of kudos givers for the posts on my community. Here's the call (having gotten the variables 'board'  and 'message_id' previously using coreNode.id)

 

<#assign kudos_givers = rest("/boards/id/"+board+"/messages/id/"+message_id+"/kudos/givers/")>

 

In most cases this works flawlwessly, but in some posts that have 60+ kudos, I'm not recieving the full list of givers. For example, I had freemarker print the size of the kudos_givers.users.user array and it's 25 givers where the post stats say there are 83. Is there a size limit on the array or am I doing something wrong?

  • If your community allows weighted kudos... you could have 25 users with 83 kudos.

     

    Otherwise, you may have to specify a page size. From the kudos API:

     

    Parameter Type Possible Values Description

    page_size (optional)int The size of the page to be returned. When displaying threads, we recommend showing no more than 25 threads per page. Specify a number from 5 to 1000.
    page (optional)int 

    The 1-based index of the page to be returned.

1 Reply

  • If your community allows weighted kudos... you could have 25 users with 83 kudos.

     

    Otherwise, you may have to specify a page size. From the kudos API:

     

    Parameter Type Possible Values Description

    page_size (optional)int The size of the page to be returned. When displaying threads, we recommend showing no more than 25 threads per page. Specify a number from 5 to 1000.
    page (optional)int 

    The 1-based index of the page to be returned.