50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


Rigma (version 0.3.0)

get_comments_reactions: GET comments reactions

Description

Obtains a paginated list of the comments' reactions.

Usage

get_comments_reactions(file_key, comment_id, cursor = NULL)

Value

S3 object of class rigma_get_comments_reactions. Contains the parsed JSON response with fields reactions, and pagination.

Arguments

file_key

string. The key that a Figma file is referred by.

comment_id

string. The comment id.

cursor

string obtained from the result of the previous request, a cursor for pagination.

Examples

Run this code
if (FALSE) { # Sys.getenv("FIGMA_ACCESS_TOKEN") != ""
if (FALSE) {
#navigate to  file and get key from url
file_key <- "sFHgQh9dL6369o5wrZHmdR"
resp <- get_comments(file_key)
resp_reactions <- get_comments_reactions(file_key, resp$comments[[1]]$id)
}
}

Run the code above in your browser using DataLab