with Add to Calendar PRO and BambooHR?
Emit new event when a new event is deleted in the system
Emit new event when a new event group is deleted in the system
Emit new event when a new event group is updated in the system
Emit new event when a new event is updated in the system
Emit new event when a new event is created in the system
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    add_to_calendar_pro: {
      type: "app",
      app: "add_to_calendar_pro",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.add-to-calendar-pro.com/v1/event/all`,
      headers: {
        "authorization": `${this.add_to_calendar_pro.$auth.api_key}`,
      },
    })
  },
})
BambooHR is a comprehensive human resources information system (HRIS) that allows businesses to manage employee data, track time off, run reports, and integrate with other services. With its API, users on Pipedream can automate various HR tasks, sync employee data across platforms, and trigger workflows based on events like new hires, time-off requests, or updates to employee details.
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    bamboohr: {
      type: "app",
      app: "bamboohr",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.bamboohr.com/api/gateway.php/${this.bamboohr.$auth.company_domain}/v1/meta/users`,
      headers: {
        "Accept": `application/json`,
      },
      auth: {
        username: `${this.bamboohr.$auth.api_key}`,
        password: `x`,
      },
    })
  },
})