Welcome to ClientVPS Mirrors

Introduction to Figma API

Introduction to Figma API

Getting started

An account in Figma can be accessed using the API and a personal access token.

Make your own access token:

When you retrieve the personal access token save it as an environmental variable (e.g. edit .Renviron by typing usethis::edir_r_environ()).

FIGMA_ACCESS_TOKEN="YOUR_ACCESS_TOKEN_GOES_HERE!!!"

After saving your changes restart R session.

Example

Open Figma and navigate to your favorite file. In the URL you can see the key of the file. To retrieve the File as an R object execute:

library(Rigma)
example_file_key <- "sFHgQh9dL6369o5wrZHmdR"
get_file(example_file_key)

A tree of nodes is used to represent the Figma file. Every file has a DOCUMENT node at the root, and any CANVAS nodes branch out of that node. Various POST and GET methods are provided in this package to interact with a Figma files and teams.

Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.

This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.