with Contentful (OAuth) and Builder.io?
Contentful's Content Management API lets you manage content as data and integrate it seamlessly with any tech stack. On Pipedream, you can wield this power to automate content operations, sync data across platforms, and trigger workflows based on content events. For example, you could update an external database with new content entries, notify team members of content changes, or generate static sites when content updates.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
contentful: {
type: "app",
app: "contentful",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.contentful.com/spaces`,
headers: {
Authorization: `Bearer ${this.contentful.$auth.oauth_access_token}`,
},
})
},
})
The Builder.io API offers a powerful way to manage and deliver content across any platform with structured data. Using Pipedream, you can automate content creation, update workflows, and sync content across various applications. Pipedream's serverless platform allows you to connect Builder.io to hundreds of other services without writing complex code, triggering actions on events or on a schedule.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
builder_io: {
type: "app",
app: "builder_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://cdn.builder.io/api/v2/content/page`,
params: {
apiKey: `${this.builder_io.$auth.api_key}`,
},
})
},
})