with Bika.ai and ngrok?
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`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ngrok: {
type: "app",
app: "ngrok",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ngrok.com/api_keys`,
headers: {
Authorization: `Bearer ${this.ngrok.$auth.api_key}`,
"ngrok-version": `2`,
},
})
},
})