with Enormail 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 Enormail API brings email marketing campaigns to your fingertips, allowing you to automate subscriber management and email sending. You can craft workflows that respond to subscriber actions, update lists, and send targeted emails based on user behavior or predefined triggers. Pipedream's serverless platform magnifies Enormail's potential by enabling integrations with a multitude of apps to create custom automation chains, streamlining your marketing processes without having to write extensive code.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
enormail: {
type: "app",
app: "enormail",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.enormail.eu/api/1.0/account.json`,
auth: {
username: `${this.enormail.$auth.api_key}`,
password: ``,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})