with screenshot.fyi and Figma?
Takes a screenshot of a webpage using Screenshot.fyi. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
screenshot_fyi: {
type: "app",
app: "screenshot_fyi",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://screenshot.fyi/api/take`,
params: {
url: `https://pipedream.com`,
accessKey: `${this.screenshot_fyi.$auth.access_key}`,
},
})
},
})
The Figma API unlocks the power to automate and integrate design workflows, enabling both designers and developers to extract assets, update designs, and manage files programmatically. By leveraging the Figma API on Pipedream, you can create automated processes that sync design updates with other tools, notify team members of changes, or feed design information into other parts of your digital ecosystem.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
figma: {
type: "app",
app: "figma",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.figma.com/v1/me`,
headers: {
Authorization: `Bearer ${this.figma.$auth.oauth_access_token}`,
},
})
},
})