with OrbisX 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 OrbisX API offers a platform for detailing businesses to manage customer relationships, appointments, services, and more. In Pipedream, you can harness this API to automate various tasks, streamline business workflows, and integrate with other services to enhance operational efficiency. Using Pipedream's serverless platform, you can set up event-driven workflows that respond to data from OrbisX in real-time, or on a schedule, without the need to manage infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
orbisx: {
type: "app",
app: "orbisx",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://orbisx.ca/app/api/VSVlj`,
params: {
key: `${this.orbisx.$auth.api_key}`,
dothis: `saveLead`,
company: `YOUR_COMPANY`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})