with Mailbox Power 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 Mailbox Power API enables personalized direct mail campaigns by automating the sending of physical mail, gifts, and greeting cards. This can be orchestrated directly from Pipedream's platform, leveraging the ease of serverless workflows. With this API, one can create targeted, personalized mail pieces on the fly, manage contacts, and track sent items, all programmatically. The integration potential on Pipedream also allows for syncing Mailbox Power with CRM systems, triggering mail sends based on customer actions or dates, and analyzing the impact of direct mail campaigns in conjunction with digital marketing tools.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailbox_power: {
type: "app",
app: "mailbox_power",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.rocketnotes.com/api/clienttether/contacts/groups`,
headers: {
"APIKEY": `${this.mailbox_power.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})