with Current RMS and Chatbase?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
current_rms: {
type: "app",
app: "current_rms",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.current-rms.com/api/v1/members`,
headers: {
Authorization: `Bearer ${this.current_rms.$auth.oauth_access_token}`,
"x-subdomain": `${this.current_rms.$auth.subdomain}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chatbase: {
type: "app",
app: "chatbase",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.chatbase.co/api/v1/get-chatbots`,
headers: {
Authorization: `Bearer ${this.chatbase.$auth.api_key}`,
},
})
},
})