with AI Chatbot Hub and Opinion Stage?
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: {
opinion_stage: {
type: "app",
app: "opinion_stage",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.opinionstage.com/api/v2/items`,
headers: {
"accept": `application/vnd.api+json`,
},
auth: {
username: `${this.opinion_stage.$auth.api_key}`,
password: ``,
},
})
},
})