import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    pembee: {
      type: "app",
      app: "pembee",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://webhooks.pembee.app/api/zapier/users`,
      headers: {
        Authorization: `Bearer ${this.pembee.$auth.api_key}`,
      },
      params: {
        account_name: `${this.pembee.$auth.account_name}`,
      },
    })
  },
})
Pembee uses API keys for authentication. When you connect your Pembee account, Pipedream securely stores the keys so you can easily authenticate to Pembee APIs in both code and no-code steps.