import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    sherpa: {
      type: "app",
      app: "sherpa",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `${this.sherpa.$auth.api_url}/v2/countries`,
      headers: {
        "accept": `*/*`,
      },
      params: {
        language: `en-US`,
        key: `${this.sherpa.$auth.api_key}`,
      },
    })
  },
})
Sherpa uses API keys for authentication. When you connect your Sherpa account, Pipedream securely stores the keys so you can easily authenticate to Sherpa APIs in both code and no-code steps.