with Hiveage 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 Hiveage API empowers you to automate your invoicing and financial workflows directly within Pipedream. By leveraging this API, you can create, fetch, update, and manage invoices, clients, and payments programmatically. Imagine syncing invoice data with your CRM, triggering notifications upon receiving payments, or compiling financial reports without manual input. This seamless integration with Pipedream enables you to build custom workflows that streamline your billing cycle, enhance data consistency, and save you time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hiveage: {
type: "app",
app: "hiveage",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.hiveage.$auth.subdomain}.hiveage.com/api/network`,
auth: {
username: `${this.hiveage.$auth.api_key}`,
password: ``,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})