with Timekit and pdforge?
Emit new event when a booking has a specific state. See the docs
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pdforge: {
type: "app",
app: "pdforge",
}
},
async run({ steps, $ }) {
const data = {
"templateId": `${this.pdforge.$auth.template_id}`,
"convertToImage": false,
"data": { "email": `john@fabrikam.com` },
}
return await axios($, {
method: "post",
url: `https://api.pdforge.com/v1/pdf/sync`,
headers: {
Authorization: `Bearer ${this.pdforge.$auth.api_key}`,
},
data,
})
},
})