View source: R/get_figma_file_content.R
get_figma_file_content | R Documentation |
Connect to Figma API and extract the raw content of a file.
get_figma_file_content(file_key, acess_token = Sys.getenv("FIGMA_TOKEN"))
file_key |
Character. Key of the Figma file. |
acess_token |
Character. Figma access token. |
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)
A list. Content of the file.
raw_file_content <- get_figma_file_content(file_key = "wRqIvMmymzSPuj0sEhnORb", acess_token = Sys.getenv("FIGMA_TOKEN"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.