with Beekeeper 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 Beekeeper API enables seamless integration of its workplace communications platform with other business tools and systems, enhancing team collaboration and operational efficiency. By leveraging the Beekeeper API on Pipedream, you can automate the flow of information between Beekeeper and various applications, trigger actions based on messages or alerts, and synchronize data across your organization's tools. Pipedream's serverless architecture simplifies the process of setting up these automations without the need for dedicated infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
beekeeper: {
type: "app",
app: "beekeeper",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.beekeeper.$auth.subdomain}.beekeeper.io/api/2/config`,
headers: {
Authorization: `Bearer ${this.beekeeper.$auth.access_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})