with Botsonic and Rendi?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
botsonic: {
type: "app",
app: "botsonic",
}
},
async run({steps, $}) {
const data = {
"input_text": `{{your_input_text}}`, //E.g. How to develop these skills?
"chat_id": `{{your_chat_id}}`, //E.g. 9f2569da-ba86-4a88-a4c0-9932a91bedf4
}
return await axios($, {
method: "post",
url: `${this.botsonic.$auth.generate_endpoint}`,
headers: {
"token": `${this.botsonic.$auth.api_key}`,
"Accept": `application/json`,
"Content-Type": `application/json`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rendi: {
type: "app",
app: "rendi",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.rendi.dev/v1/files`,
headers: {
"x-api-key": `${this.rendi.$auth.api_key}`,
},
})
},
})