with Easy Projects 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 Easy Projects API allows you to interact with your project management data programmatically. With this API, you can automate tasks, sync data across different platforms, extract reports, and streamline communication between team members. By integrating the Easy Projects API on Pipedream, you can create powerful workflows that trigger actions within Easy Projects or in other apps, based on events that occur within your project management space.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
easy_projects: {
type: "app",
app: "easy_projects",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.easy_projects.$auth.domain}.go.easyprojects.net/api/v1/users/current`,
auth: {
username: `${this.easy_projects.$auth.email}`,
password: `${this.easy_projects.$auth.password}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})