with eTermin 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 eTermin API empowers users to automate scheduling and calendar management tasks. With it, you can sync appointments, manage bookings, and update event details seamlessly. Pipedream's capabilities allow you to integrate these features into a multitude of workflows, connecting eTermin's API with other services to create powerful automation that can save time and reduce manual effort. From synchronizing appointments with Google Calendar to sending SMS reminders via Twilio, the possibilities stretch as far as your creativity.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
etermin: {
type: "app",
app: "etermin",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.etermin.net/api/company`,
headers: {
"publickey": `${this.etermin.$auth.public_key}`,
"salt": `${this.etermin.$auth.salt}`,
"signature": `${this.etermin.$auth.signature}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})