with Freedcamp 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 Freedcamp API enables you to interact with your project management tools programmatically, offering a way to streamline, automate, and integrate your project workflows. With Pipedream, you can harness this API to create custom automations, such as syncing tasks, managing milestones, and tracking project updates. Pipedream's serverless platform offers a low-code approach, making it significantly simpler to connect Freedcamp with other apps and services to optimize your project management processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
freedcamp: {
type: "app",
app: "freedcamp",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://freedcamp.com/api/v1/sessions/current`,
params: {
api_key: `${this.freedcamp.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})