with Claris Filemaker Server OData API and screenshot.fyi?
Takes a screenshot of a webpage using Screenshot.fyi. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
claris_filemaker_server_odata_api: {
type: "app",
app: "claris_filemaker_server_odata_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.claris_filemaker_server_odata_api.$auth.api_url}/fmi/odata/v4/${this.claris_filemaker_server_odata_api.$auth.database_name}/$metadata`,
auth: {
username: `${this.claris_filemaker_server_odata_api.$auth.username}`,
password: `${this.claris_filemaker_server_odata_api.$auth.password}`,
},
})
},
})
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}`,
},
})
},
})