with Aroflo 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.
Aroflo's API offers the power to streamline operations by automating tasks and integrating with a wide variety of systems. Through Pipedream, you can leverage this to synchronize data across platforms, trigger workflows based on specific events, and manipulate Aroflo data in real-time. Whether updating project statuses, managing assets, or automating invoicing and reporting, Pipedream's serverless platform can facilitate a seamless link between Aroflo and other services.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
aroflo: {
type: "app",
app: "aroflo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.aroflo.com/`,
headers: {
"Accept": `text/json`,
"Authentication": `HMAC ${this.aroflo.$auth.hmac_key}`,
},
params: {
where: `and|archived|=|false`,
zone: `users`,
page: `1`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})