cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Occasional Contributor

Kudos value with search for messages

Hi, I'm using the v2 search endpoint with query

Select * from messages where board.id='myboard'

This brings me 100 message type item. The key is that I also need to get the kudos value for each of those messages. Is the only solution making 100 calls to the kudos query by each message id? Is there any way to get kudos value in one shot? I dont see how a custom endpoint will do it. 

Note, I'm looking for the count, not the sum of the weighted kudos.

3 Replies 3
Highlighted
Honored Contributor

@jpadilla,

You can use API V1 for this request type to get all the kudos count under a board.

http://community.lithium.com/community-name/restapi/vc/boards/id/video_cards/kudos/count

 

.......
Do you know we work with Kudos and Accepted Solution.
Occasional Contributor

Thanks, that provided total count for the board, but I was looking for all messages in the board. For example

message.id=85, Kudos=4

messages.id=86, kudos=12

.

.

.

messages.id=106, kudos=1

I also tried restapi/vc/messages/id/87/kudos/count, but again, I have to call each message id individually.

Looking for something like restapi/vc/messages/kudos/count that would bring me a list of everything with one request.

Highlighted
Honored Contributor

@jpadilla,

The way you are finding and looking at will give you the total count kudos of all the messages in that board.

If your looking for individual messages then you need to call each message id.

.......
Do you know we work with Kudos and Accepted Solution.