with Avochato 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 Avochato API provides a communication toolkit that enables automated text messaging and phone call workflows. With Pipedream, you can leverage this API to craft custom automations that respond to incoming messages, send alerts, or synchronize communication with your CRM, among other functionalities. Imagine streamlining customer support by auto-responding to common queries, or improving sales engagement by triggering timely follow-up messages—all this without manual intervention, directly harnessing the power of Avochato's communication capabilities within Pipedream's serverless platform.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
avochato: {
type: "app",
app: "avochato",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.avochato.com/v1/accounts`,
params: {
auth_id: `${this.avochato.$auth.auth_id}`,
auth_secret: `${this.avochato.$auth.auth_secret}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})