with Cloudflare Browser Rendering and PushEngage?
Fetches rendered HTML content from provided URL or HTML. See the documentation
Fetches rendered PDF from provided URL or HTML. See the documentation
Takes a screenshot of a webpage from provided URL or HTML. See the documentation
Get meta attributes like height, width, text and others of selected elements. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cloudflare_browser_rendering: {
type: "app",
app: "cloudflare_browser_rendering",
}
},
async run({steps, $}) {
const data = {
"url": `https://pipedream.com?via=go`,
}
return await axios($, {
method: "post",
url: `https://api.cloudflare.com/client/v4/accounts/${this.cloudflare_browser_rendering.$auth.account_id}/browser-rendering/content`,
headers: {
Authorization: `Bearer ${this.cloudflare_browser_rendering.$auth.api_token}`,
"content-type": `application/json`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pushengage: {
type: "app",
app: "pushengage",
}
},
async run({steps, $}) {
return await axios($, {
url: ` https://api.pushengage.com/apiv1/notifications`,
headers: {
"api-key": `${this.pushengage.$auth.api_key}`,
},
})
},
})