with Recruiterflow and Grafbase?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
recruiterflow: {
type: "app",
app: "recruiterflow",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://recruiterflow.com/api/external/user/list`,
headers: {
"rf-api-key": `${this.recruiterflow.$auth.api_key}`,
},
params: {
include_count: `true`,
},
})
},
})
The Grafbase API allows you to interact with your Grafbase backend, enabling CRUD operations on your data models, managing authentication, and triggering custom business logic. Grafbase provides real-time updates and serverless deployment which makes it a perfect partner for Pipedream's serverless platform. You can build workflows to automate tasks, integrate with various services, and respond to events without managing infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
grafbase: {
type: "app",
app: "grafbase",
}
},
async run({steps, $}) {
const data = {
"query": `{
__schema {
types {
name
}
}
}`,
}
return await axios($, {
method: "post",
url: `${this.grafbase.$auth.url}`,
headers: {
"Content-Type": `application/json`,
"x-api-key": `${this.grafbase.$auth.api_key}`,
},
data,
})
},
})