with Humanitix 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 Humanitix API provides a programmable interface to interact with the Humanitix event platform, enabling you to automate and integrate event management processes with other systems. With this API, you can retrieve event details, manage attendees, and handle bookings programmatically. When used on Pipedream, you can leverage serverless workflows to connect Humanitix with a myriad of other apps and services, streamlining tasks like attendee communication, marketing efforts, and data analysis.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
humanitix: {
type: "app",
app: "humanitix",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.humanitix.com/v1/tags`,
headers: {
"x-api-key": `${this.humanitix.$auth.api_key}`,
"Content-Type": `application/json`,
},
params: {
page: `1`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})