Forum Discussion
Hi,
I think this is what you're looking for: http://community.lithium.com/t5/Community-API/bd-p/developers-rest-api?leaf-id=Message.kudos.give.allowed#Message.kudos.give.allowed
Hmm... We are already making that call to see if the message belongs to the member logged in, the api call returning permission denied is being used to check whether the member has already submitted a kudos for the message because the API call you suggest has the note:
"Note that this ignores whether the user has already kudoed the message, in which a kudo can be given again but will have no effect."
So our logic is a combination of the 2 API's to enable/disable the button. I guess I will have to make the call to "/kudos/for/users/self/count" conditional based upon "kudos/give/allowed", meaning, if "kudos/give/allowed" is false, then don't make the API call that is crashing due to permission denied.
Related Content
- 29 days ago
- 3 months ago