with HUB Planner 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 HUB Planner API is a toolset for managing resources, projects, and bookings in a visual and interactive way. By using the API with Pipedream, you can automate complex workflows, sync data across multiple platforms, and create custom integrations to streamline operations. From scheduling resources to analyzing project data, the opportunities are vast for enhancing project management efficiency.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hub_planner: {
type: "app",
app: "hub_planner",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hubplanner.com/v1/project`,
headers: {
"Authorization": `${this.hub_planner.$auth.api_key}`,
"Accept": `application/json`,
"Content-Type": `application/json`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})