with AI Chatbot Hub and intelliflo office?
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: {
intelliflo_office: {
type: "app",
app: "intelliflo_office",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.${this.intelliflo_office.$auth.region_code}.intelliflo.net/v2/clients`,
headers: {
Authorization: `Bearer ${this.intelliflo_office.$auth.oauth_access_token}`,
"x-api-key": `${this.intelliflo_office.$auth.api_key}`,
},
})
},
})