getLikedUsers(messageID, c11nEnv)
Obtains the list of users who like a message.
Returns
A Promise that resolves to an object.
Parameters
Name | Type | Description | Required |
messageID | string | The ID of the message that is liked by the users. | ✅ |
c11nEnv | object | The name of the context where the API is being called. | ✅ |
Usage example
In this example, the API obtains the list of users who liked the message with the ID
W-102
.
PCore.getFeedUtils().getLikedUsers(W-102, 'app/primary_1')
.then(response => {
// response array
}).catch(err => {
// errors
});
Previous topic getFeeds(pulseContext, feedID, feedClass, feedFilters, fetchFeedsCancelTokenSource, c11nEnv, isLoadMore) Next topic getMentionSuggestions(mentionProps, c11nEnv)