get_image_fills: GET image fills

View source: R/get_image_fills.R

get_image_fillsR Documentation

GET image fills

Description

This API endpoint provides download URLs for all of the images that are present in a document's image fills. Figma represents any user-supplied images using image fills. When you drag a picture into Figma, it builds a rectangle with a single fill to represent it. The user can then modify the attributes of the fill and change the rectangle as they see fit.

Usage

get_image_fills(file_key)

Arguments

file_key

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

Value

This API provides a mapping from image references to download URLs for the images. Image URLs have a 14-day maximum lifespan. Image references are located in the output of the GET files endpoint under the 'imageRef' attribute in a Paint.

Examples


## Not run: 
#navigate to  file and get key from url
file_key <- "sFHgQh9dL6369o5wrZHmdR"
get_image_fills(file_key)

## End(Not run)


Rigma documentation built on Nov. 28, 2022, 1:09 a.m.