with Contentful (OAuth) and Power Automate?
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
power_automate: {
type: "app",
app: "power_automate",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments?api-version=2016-11-01`,
headers: {
Authorization: `Bearer ${this.power_automate.$auth.oauth_access_token}`,
},
})
},
})