Modern business telephony for the cloud
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 Placetel API lets you integrate a variety of telephony functions directly into Pipedream workflows. By connecting Placetel to Pipedream, you can automate processes like sending SMS messages, managing calls, or updating contact information programmatically. Pipedream's serverless platform enables these integrations to run on triggers such as incoming webhooks, scheduled times, or actions from other apps, orchestrating complex tasks in a simplified manner.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
placetel: {
type: "app",
app: "placetel",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.placetel.de/v2/me`,
headers: {
Authorization: `Bearer ${this.placetel.$auth.api_key}`,
"content-type": `application/json`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})