matisiekpl / figma

A Golang package for interacting with the Figma APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

figma

A Golang package for interacting with the Figma APIs

godoc license Go Report Card

TODO

  • [GET] Files
  • [GET] Images
  • [POST] Comments
  • [GET] Team projects
  • [GET] Project files
  • Testing
  • CI integration

Getting started

Before using this package, you will need a Figma account and a personal access token.

Installation

> go get -u github.com/torie/figma

Usage

Create a Figma client

c := figma.New("access-token")

Get a Figma document

f, err := c.File("document-key")

Render a node as PNG

imgs, err := c.Images("document-key", 2, figma.ImageFormatPNG, "node-id")

Examples

Examples can be found in the examples folder

About

A Golang package for interacting with the Figma APIs

License:MIT License


Languages

Language:Go 100.0%