with Dappier and BuySellAds?
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: {
buysellads: {
type: "app",
app: "buysellads",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://papi.buysellads.com/daily-stats`,
params: {
key: `${this.buysellads.$auth.api_key}`,
},
})
},
})