with Revel Systems 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 Revel Systems API provides a rich interface to a robust Point of Sale (POS) system, enabling businesses to automate and streamline operations related to sales, inventory, and customer management. By tapping into this API via Pipedream, you can trigger workflows from real-time events in your POS, sync data across various business apps, and analyze transactional data to glean actionable insights, all in an effort to enhance efficiency and customer experience.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
revel_systems: {
type: "app",
app: "revel_systems",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.revel_systems.$auth.subdomain}.revelup.com/resources/OrderItem`,
headers: {
"API-AUTHENTICATION": `${this.revel_systems.$auth.api_key}:${this.revel_systems.$auth.api_secret}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})