Welcome - Webinar Software for Marketers
Emit new event when a new event is created in Welcome. See the documentation
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format 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`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})