AleKoure / Rigma

R client to Figma API
https://alekoure.github.io/Rigma
Other
9 stars 2 forks source link

Add function for standard structure returned by the API #14

Open AleKoure opened 1 year ago

AleKoure commented 1 year ago

The following structure is returned among many endpoints:

structure(
    list(
      error = resp %>% chuck("error"),
      status = resp %>% chuck("status"),
      meta = resp %>% chuck("meta"),
      i18n = resp %>% chuck("i18n")
    ),
    class = "rigma_get_image_fills"
  )

Write a function to avoid code repetition.