with Nozbe Teams 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 Nozbe Teams API enables automation of task and project management within the Nozbe Teams app. With this API on Pipedream, you can create, read, update, and delete tasks, projects, and comments, as well as manage team members and their activities. By tapping into this functionality, teams can streamline their workflows, synchronize project activities with other business tools, and enhance overall productivity with custom automation.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nozbe_teams: {
type: "app",
app: "nozbe_teams",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api4.nozbe.com/v1/api/teams`,
headers: {
"Accept": `application/json`,
"Authorization": `${this.nozbe_teams.$auth.api_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})