with Flash (by Velora AI) and Bika.ai?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
flash_by_velora_ai: {
type: "app",
app: "flash_by_velora_ai",
}
},
async run({steps, $}) {
const data = {
"feedback": `Pipedream.com is a great platform for automations! Highly recommended.`,
}
return await axios($, {
method: "post",
url: `https://flash-api.velora.ai/v1/api/add-feedback`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.flash_by_velora_ai.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bika_ai: {
type: "app",
app: "bika_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://bika.ai/api/openapi/bika/v1/system/meta`,
headers: {
Authorization: `Bearer ${this.bika_ai.$auth.api_token}`,
"content-type": `application/json`,
},
})
},
})