with MurList 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.
MurList API offers the ability to manage and automate email lists and campaigns, streamlining the processes of subscriber management, email sending, and performance tracking. With MurList, you can create, update, and delete subscriber data, design personalized email campaigns, and analyze metrics to enhance your marketing strategies. Pipedream, as a serverless integration and compute platform, supercharges these capabilities by enabling you to connect MurList with an array of other apps and services, creating sophisticated workflows that can run on triggers or schedules.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
murlist: {
type: "app",
app: "murlist",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.murlist.com/campaign/all`,
headers: {
"X-API-KEY": `${this.murlist.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})