with AI Chatbot Hub and Amplitude Experiment Management?
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: {
amplitude_experiment_management: {
type: "app",
app: "amplitude_experiment_management",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.amplitude_experiment_management.$auth.region}/api/1/experiments`,
headers: {
Authorization: `Bearer ${this.amplitude_experiment_management.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})