inst/doc/http-errors.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(figma)

## ---- eval = FALSE------------------------------------------------------------
#  node_id <- "wrongID"
#  file_key <- "hch8YlkIrYbU3raDzjPvCz"
#  token <- "My valid personal access token... "
#  result <- get_figma_page(
#    file_key, token, node_id
#  )

## ---- eval = FALSE------------------------------------------------------------
#  file_key <- "This key does not exist"
#  token <- "A valid personal token ..."
#  
#  result <- figma::get_figma_file(
#    file_key, token
#  )

## ---- eval = FALSE------------------------------------------------------------
#  file_key <- "hch8YlkIrYbU3raDzjPvCz"
#  token <- "This is an incorrect token"
#  
#  result <- figma::get_figma_file(
#    file_key, token
#  )

Try the figma package in your browser

Any scripts or data that you put into this service are public.

figma documentation built on Jan. 6, 2023, 5:11 p.m.