import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    storerocket: {
      type: "app",
      app: "storerocket",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://storerocket.io/api/v2/user`,
      headers: {
        Authorization: `Bearer ${this.storerocket.$auth.api_token}`,
        "accept": `application/json`,
      },
    })
  },
})
Storerocket uses API keys for authentication. When you connect your Storerocket account, Pipedream securely stores the keys so you can easily authenticate to Storerocket APIs in both code and no-code steps.