with Esendex 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 Esendex API enables seamless SMS and voice messaging integration into your applications, allowing for automated communication with customers or systems. On Pipedream, you can harness this API to create serverless workflows that react to various triggers, from inbound messages to scheduled times, and interact with other services to provide a cohesive automation experience.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
esendex: {
type: "app",
app: "esendex",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.esendex.com/v1.0/accounts`,
auth: {
username: `${this.esendex.$auth.username}`,
password: `${this.esendex.$auth.api_password}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})