with Dappier and Rippling?
Emit new event when a new worker is created in Rippling. See the documentation
Retrieves a list of all companies from Rippling. See the documentation
Retrieves a list of all workers from Rippling. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dappier: {
type: "app",
app: "dappier",
}
},
async run({steps, $}) {
const data = {
"query": `What is an MCP server?`,
}
return await axios($, {
method: "post",
url: `https://api.dappier.com/app/aimodel/am_01j06ytn18ejftedz6dyhz2b15`,
headers: {
Authorization: `Bearer ${this.dappier.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rippling: {
type: "app",
app: "rippling",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://rest.ripplingapis.com`,
headers: {
Authorization: `Bearer ${this.rippling.$auth.api_key}`,
},
})
},
})