import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    fiserv: {
      type: "app",
      app: "fiserv",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `${this.fiserv.$auth.url}/sandbox/exp/v1/authorisations`,
      headers: {
        "API-Key": `${this.fiserv.$auth.api_key}`,
      },
    })
  },
})
Fiserv uses API keys for authentication. When you connect your Fiserv account, Pipedream securely stores the keys so you can easily authenticate to Fiserv APIs in both code and no-code steps.
Sign in and copy your API and Secret Keys directly from your dashboard under API Keys