with Itemize 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 Itemize API enables automated processing and organization of receipts, invoices, and other financial documents. By harnessing machine learning, it extracts pertinent data such as dates, amounts, taxes, and vendor information, converting cluttered paperwork into structured data. This can be a boon for accounting, expense tracking, and financial auditing workflows.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
itemize: {
type: "app",
app: "itemize",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://sandbox.proapi.itemize.com/api/enterprise/v1/accounts/[ACCOUNT-ID]`,
auth: {
username: `${this.itemize.$auth.api_token}`,
password: ``,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})