Forum Discussion
madhukar1100
9 years agoMentor
Hi,
I tried copy pasting the code that you have given, but it didnt worked.
Can you help me to get the correct code that needs to be added.
kandulmadhu
9 years agoAdvisor
Hi madhukar1100,
To add kudos functionality in a custom component:
Create a button in html and then on click of that button make an ajax call to
" 'community-baseURL'/restapi/vc/messages/id/'message-id'/kudos/give "
Before making this ajax call, you will have to validate whether the user is signed in, because anonymous user cannot give kudo to any post.
This should work.
Let me know if you face any issues in this approach.
Regards,
Madhu
Related Content
- 4 years ago