with Gmail and BambooHR?
Emit new event for each attachment in a message received. This source is capped at 100 max new messages per run.
Emit new event when an email matching the search criteria is received. This source is capped at 100 max new messages per run.
Emit new event for each new email sent. (Maximum of 100 events emited per execution)
By connecting your personal Gmail account to Pipedream, you'll be able to incorporate email into whatever you're building with any of the thousands of apps that are available on Pipedream.
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    gmail: {
      type: "app",
      app: "gmail",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://www.googleapis.com/oauth2/v1/userinfo`,
      headers: {
        Authorization: `Bearer ${this.gmail.$auth.oauth_access_token}`,
      },
    })
  },
})
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`,
      },
    })
  },
})