with Welcome and Current RMS?
Emit new event when a new event is created in Welcome. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
welcome: {
type: "app",
app: "welcome",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.experiencewelcome.com/api/v1/events`,
headers: {
Authorization: `Bearer ${this.welcome.$auth.oauth_access_token}`,
"Accept": `application/json`,
},
})
},
})
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}`,
},
})
},
})