get_figma_file_content: Connect to Figma API and extract the raw content of a file.

View source: R/get_figma_file_content.R

get_figma_file_contentR Documentation

Connect to Figma API and extract the raw content of a file.

Description

Connect to Figma API and extract the raw content of a file.

Usage

get_figma_file_content(file_key, acess_token = Sys.getenv("FIGMA_TOKEN"))

Arguments

file_key

Character. Key of the Figma file.

acess_token

Character. Figma access token.

Details

The key of your Figma file corresponds to the character wRqIvMmymzSPuj0sEhnORb in the url "https://www.figma.com/file/wRqIvMmymzSPuj0sEhnORb/..." (example). The acess token can be created in your Figma account (https://www.figma.com/developers/api Section Access tokens)

Value

A list. Content of the file.

Examples

raw_file_content <- get_figma_file_content(file_key = "wRqIvMmymzSPuj0sEhnORb",
                                         acess_token = Sys.getenv("FIGMA_TOKEN"))

ThinkR-open/swatch documentation built on April 7, 2022, 6:08 p.m.