with Karbon 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.
Karbon is a work management platform designed for accounting firms, centralizing team communication, workflows, and client interactions. With Karbon's API, you can automate routine operations, sync data across multiple systems, and create custom monitoring solutions tailored for your firm's workflow. By leveraging Pipedream's capabilities, you can harness the power of Karbon's API to create dynamic, serverless workflows that connect Karbon with other apps to streamline your accounting practices.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
karbon: {
type: "app",
app: "karbon",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.karbonhq.com/v3/Users`,
headers: {
Authorization: `Bearer ${this.karbon.$auth.application_access_key}`,
"AccessKey": `${this.karbon.$auth.tenant_access_key}`,
"Accept": `application/json`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})