Skip to content
/ figma Public

A Golang package for interacting with the Figma APIs

License

Notifications You must be signed in to change notification settings

torie/figma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages