Last active
September 3, 2021 08:35
-
-
Save PavelLaptev/c0bfe21214c6e2b264dc6b6c5cd3d80e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function getFigmaObjTree(figmaApiKey, figmaId) { | |
let result = await fetch("https://api.figma.com/v1/files/" + figmaId, { | |
method: "GET", | |
headers: { | |
"X-Figma-Token": figmaApiKey | |
} | |
}); | |
let figmaTreeStructure = await result.json(); | |
console.log(figmaTreeStructure); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment