I am using REST api to get forum thread replies and is showing Votes count - QualityYesVotes, QualityNoVotes next to each reply.
Now, I want to show a voted-up/down indicator next to the up/down button for logged-in user. Below is a screenshot of TC's default voting experience.
I have tried both - https://community.telligent.com/community/10/w/api-documentation/61580/list-forum-reply-votes-forum-reply-votes-rest-endpoint and https://community.telligent.com/community/10/w/api-documentation/61577/show-forum-reply-vote-forum-reply-vote-rest-endpoint to get votes details for the current user. But, both apis are not returning any relevant information. It's returning null and zero respectively for those api calls.
How can I get votes details of currently logged in user?
Any help will be appreciated.
The second endpoint, https://community.telligent.com/community/10/w/api-documentation/61577/show-forum-reply-vote-forum-reply-vote-rest-endpoint , is the correct one to detect if the user has voted on this reply or not. Ensure that you are specifying VoteType=Quality in the querystring and also ensure that you're executing the REST request on behalf of the user you want to report on.
Cool. That helps a lot. I am able to retrieve the votes for each request.
I am curious whether is there any API, which will return all the votes by logged-in user for a particular thread by simply passing a userid? Is that available out-of-the-box? If not, should I go ahead with Batching (https://community.telligent.com/community/10/w/developer-training/53146/rest-best-practices-for-performance#Batching) all the calls into single request?