with Avaza 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 Avaza API enables integration of project management, time tracking, and invoicing features into custom workflows. With Pipedream, automation between Avaza and other apps becomes seamless, allowing for the streamlining of project updates, financial processes, and team collaboration. Pipedream's serverless platform offers a powerful way to link Avaza's capabilities with numerous other services, triggering actions based on events, and automating repetitive tasks.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
avaza: {
type: "app",
app: "avaza",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.avaza.com/api/Account`,
headers: {
Authorization: `Bearer ${this.avaza.$auth.oauth_access_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})