with Timekit and Formatting?
Emit new event when a booking has a specific state. See the docs
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.
Timekit is a flexible booking and resource management API that enables developers to create and manage appointments and calendars. With Timekit, you can automate the scheduling process, sync calendars, manage bookings, and craft customized booking experiences. Using Pipedream, you can leverage Timekit to create efficient workflows that automate scheduling-related tasks, trigger actions based on calendar events, and integrate with various other services for a seamless operational ecosystem.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
timekit: {
type: "app",
app: "timekit",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.timekit.io/v2/users`,
headers: {
"Content-Type": `application/json`,
},
auth: {
username: ``,
password: `${this.timekit.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})