with Housecall Pro and Dappier?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
housecall_pro: {
type: "app",
app: "housecall_pro",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.housecallpro.com/company`,
headers: {
"accept": `application/json`,
"authorization": `Token ${this.housecall_pro.$auth.api_key}`,
},
})
},
})
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,
})
},
})