import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    systeme_io: {
      type: "app",
      app: "systeme_io",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.systeme.io/api/contacts`,
      headers: {
        "x-api-key": `${this.systeme_io.$auth.api_key}`,
      },
    })
  },
})
Systeme.io uses API keys for authentication. When you connect your Systeme.io account, Pipedream securely stores the keys so you can easily authenticate to Systeme.io APIs in both code and no-code steps.