with Automizy 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 Automizy API provides a platform for automating email marketing campaigns, managing contacts, and analyzing the effectiveness of your email strategies. By leveraging this API within Pipedream, you can create dynamic, serverless workflows that respond to various triggers, such as user behavior or external events, to send personalized emails, segment contacts based on interactions, and synchronize subscriber data across various platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
automizy: {
type: "app",
app: "automizy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://gateway.automizy.com/v2/smart-lists`,
headers: {
Authorization: `Bearer ${this.automizy.$auth.api_token}`,
"Content-Type": `application/json`,
"Accept": `application/json`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})