with Handwrytten 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 Handwrytten API allows you to automate the sending of handwritten notes to clients, customers, or friends. Integrating this API within Pipedream workflows enables you to create personalized outreach at scale, triggered by various business events such as customer signups, purchases, or feedback. It's an innovative way to add a human touch to your communication strategy through technology.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
handwrytten: {
type: "app",
app: "handwrytten",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.handwrytten.com/v2/auth/getUser`,
headers: {
"Accept": `application/json`,
"Authorization": `${this.handwrytten.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})