with Mobile Text Alerts 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 Mobile Text Alerts API allows for the automation of SMS messaging processes, enabling you to send alerts, reminders, and notifications directly to people's phones. With Pipedream's serverless platform, you can integrate these text messaging capabilities into complex workflows with various triggers and actions from a multitude of services.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mobile_text_alerts: {
type: "app",
app: "mobile_text_alerts",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.mobile-text-alerts.com/v3/subscribers`,
headers: {
Authorization: `Bearer ${this.mobile_text_alerts.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})