with Pembee and Hygraph?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pembee: {
type: "app",
app: "pembee",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://webhooks.pembee.app/api/zapier/users`,
headers: {
Authorization: `Bearer ${this.pembee.$auth.api_key}`,
},
params: {
account_name: `${this.pembee.$auth.account_name}`,
},
})
},
})
Hygraph API allows you to interact with a headless content management system that lets you manage and deliver content across multiple platforms. Leveraging this API on Pipedream, you can automate content creation, update workflows, and synchronize data across various services. You can trigger workflows on content changes, enrich the content with external APIs, or even automate content moderation.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hygraph: {
type: "app",
app: "hygraph",
}
},
async run({steps, $}) {
const data = {
"query": `{
posts {
id
author {
id
name
}
publishedAt
}
}`,
}
return await axios($, {
method: "post",
url: `{replace_with_your_content_api_url}`,
headers: {
Authorization: `Bearer ${this.hygraph.$auth.permanent_auth_token}`,
"Content-Type": `application/json`,
},
data,
})
},
})