with Tavily and Belco?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
tavily: {
type: "app",
app: "tavily",
}
},
async run({steps, $}) {
const data = {
"api_key": `${this.tavily.$auth.api_key}`,
"query": "What is Pipedream?",
"include_domains": ["pipedream.com"]
}
return await axios($, {
method: "post",
url: `https://api.tavily.com/search`,
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
belco: {
type: "app",
app: "belco",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.belco.io/v1/users`,
headers: {
Authorization: `Bearer ${this.belco.$auth.api_token}`,
"accept": `application/json`,
},
})
},
})