Hello All,
Is there any way in the Khoros community where we can give kudos to posts on behalf of a user? we didn't find any option in the community Admin or in the API.
Any suggestions will be really appreciated
There is a way to do that using external API calls.
From any external service, first of all you need to create session on the behalf of other user, then you can hit the Kudos API from the session token generated for that user.
You can use any API version API V1 or V2.
V1:
https://community.lithium.com/restapi/vc/messages/id/1271/kudos/give
V2:
https://developer.khoros.com/khoroscommunitydevdocs/reference/create-a-kudo
curl -L -X POST 'https://[COMMUNITY-DOMAIN]/api/2.0/messages/640/kudos' \
-H 'content-type: application/json' \
-H 'li-api-session-key: [SESSION-KEY]' \
--data-raw '{
"data": {
"type": "kudo"
}
}'
You need to replace [SESSION-KEY] with key generated from Oauth.
Welcome to the Technology board!
Curious about our platform? Looking to connect on social technology? You've come to the right place!