JavaScript
import Whop from '@whop/sdk'; const client = new Whop({ apiKey: 'My API Key', }); 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": "<string>" }
Retrieves a reaction
Required permissions:
chat:read
The app API key from an app from the /dashboard/developer page
The ID of the reaction
"reac_xxxxxxxxxxxxxxxxxxxxxx"
A successful response
Represents a reaction to a feed post
The unique identifier for the entity
The ID of the post this reaction belongs to
The user who reacted to the post
Show child attributes
The internal ID of the user.
"user_xxxxxxxxxxxxx"
The username of the user from their Whop account.
"johndoe42"
The name of the user from their Whop account.
"John Doe"
The emoji that was used in shortcode format (:heart:)
Was this page helpful?