with Botmaker and AI Chatbot Hub?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
botmaker: {
type: "app",
app: "botmaker",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.botmaker.com/v2.0/messages`,
headers: {
"access-token": `${this.botmaker.$auth.access_token}`,
},
})
},
})
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}`,
},
})
},
})