with TeamWave 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 TeamWave API offers a conduit to their CRM, project management, and HR software, allowing you to automate workflows, sync data across platforms, and create custom integrations. By leveraging the TeamWave API in Pipedream, you can craft workflows that react to events within TeamWave, manipulate data, and connect to other services to streamline your business processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
teamwave: {
type: "app",
app: "teamwave",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.teamwave.com/api/users/permissions/crm`,
params: {
api_key: `${this.teamwave.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})