with KVstore.io and Cloudflare Browser Rendering?
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
The KVstore.io API lets users store and retrieve key-value pairs over a simple REST API, making it an ideal tool for serverless data storage and retrieval. On Pipedream, you can integrate this API into workflows to manage state, cache data, or coordinate information between different steps or services. Its simplicity and ease of use make it a versatile component in creating efficient and scalable serverless applications.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kvstore_io: {
type: "app",
app: "kvstore_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.kvstore.io/users/me`,
headers: {
"kvstoreio_api_key": `${this.kvstore_io.$auth.api_key}`,
},
})
},
})
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,
})
},
})