import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const reaction = await client.reactions.retrieve('reac_xxxxxxxxxxxxxxxxxxxxxx');
console.log(reaction.id);{
"id": "reac_xxxxxxxxxxxxxxxxxxxxxx",
"resource_id": "<string>",
"user": {
"id": "user_xxxxxxxxxxxxx",
"username": "johndoe42",
"name": "John Doe"
},
"emoji": ":heart:"
}Retrieves the details of an existing reaction.
Required permissions:
chat:readimport Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const reaction = await client.reactions.retrieve('reac_xxxxxxxxxxxxxxxxxxxxxx');
console.log(reaction.id);{
"id": "reac_xxxxxxxxxxxxxxxxxxxxxx",
"resource_id": "<string>",
"user": {
"id": "user_xxxxxxxxxxxxx",
"username": "johndoe42",
"name": "John Doe"
},
"emoji": ":heart:"
}A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
The unique identifier of the reaction to retrieve.
"reac_xxxxxxxxxxxxxxxxxxxxxx"
A successful response
A single reaction left by a user on a feed post, such as a like or emoji.
The unique identifier for the entity
"reac_xxxxxxxxxxxxxxxxxxxxxx"
The unique identifier of the post this reaction was left on.
The user who left this reaction on the post.
Show child attributes
The emoji used for this reaction in shortcode format. Null if the reaction type is not emoji.
":heart:"
Was this page helpful?