Use httr2::request()
to create a request with error handling an optionally
specified method.
request_figma(base_url = "https://api.figma.com", method = NULL, token = NULL)
Base URL for request. Defaults to "https://api.figma.com"
Custom HTTP method
Figma API access token. If NULL
, replace with environment
variable named "FIGMA_ACCESS_TOKEN" or an alternate name set using the
variable "Rigma.figma_token".