with WebinarGeek and Formatting?
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.
The WebinarGeek API lets you automate and streamline your webinar management tasks. You can create, update, and delete webinars, manage registrations, send out emails, and gather analytics. By harnessing this API within Pipedream, you can construct workflows that react to a variety of triggers, such as new registrant data, and then take actions, like updating a CRM or sending personalized follow-up emails through your email provider.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
webinargeek: {
type: "app",
app: "webinargeek",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.webinargeek.com/api/v2/account`,
headers: {
"Api-Token": `${this.webinargeek.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})