with Beamer 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 Beamer API enables you to automate client communication and project management tasks. With Beamer, you can create notifications, announcements, and alerts that keep your team and clients updated on project status, milestones, and deadlines. When integrated with Pipedream, Beamer unleashes the power of serverless workflows to connect with myriad apps, allowing for sophisticated automations that can streamline communications, synchronize updates across platforms, and trigger actions based on specific events or conditions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
beamer: {
type: "app",
app: "beamer",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://api.getbeamer.com/v0/ping`,
headers: {
"Beamer-Api-Key": `${this.beamer.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})