with AI Chatbot Hub and Xano (Metadata API)?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ai_chatbot_hub: {
type: "app",
app: "ai_chatbot_hub",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.aichatbothub.com/api/v1/chatbots`,
headers: {
Authorization: `Bearer ${this.ai_chatbot_hub.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
xano_metadata_api: {
type: "app",
app: "xano_metadata_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.xano.com/api:meta/auth/me`,
headers: {
Authorization: `Bearer ${this.xano_metadata_api.$auth.access_token}`,
},
})
},
})