with Pilvio 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 Pilvio API is a powerful tool that allows users to manage virtual phone systems. With it, you can create and manage phone numbers, handle inbound and outbound calls, send and receive SMS messages, and implement IVR (Interactive Voice Response) systems. When combined with Pipedream's capabilities, the Pilvio API can automate various aspects of communication workflows, effectively integrating telephony features into your business processes or applications.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pilvio: {
type: "app",
app: "pilvio",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.pilw.io/v1/user-resource/user`,
headers: {
"apikey": `${this.pilvio.$auth.api_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})