with Raindrop 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
Raindrop.io is a versatile bookmarking service that lets users save, organize, and share web content. With its API, you can automate the management of bookmarks, collections, and tags, thus streamlining the way you handle internet resources. Automating these tasks with the Raindrop API on Pipedream opens the door to personalized content curation, enhanced collaboration, and efficient information retrieval workflows. Think syncing saved articles across platforms, generating reports on saved links, or even triggering actions based on new content.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
raindrop: {
type: "app",
app: "raindrop",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.raindrop.io/rest/v1/user`,
headers: {
Authorization: `Bearer ${this.raindrop.$auth.oauth_access_token}`,
},
})
},
})
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,
})
},
})