import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    ihomefinder: {
      type: "app",
      app: "ihomefinder",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://www.idxhome.com/api/v1/client.json`,
      headers: {
        "accept": `application/json`,
      },
      auth: {
        username: `${this.ihomefinder.$auth.email}`,
        password: `${this.ihomefinder.$auth.password}`,
      },
    })
  },
})
iHomefinder uses API keys for authentication. When you connect your iHomefinder account, Pipedream securely stores the keys so you can easily authenticate to iHomefinder APIs in both code and no-code steps.
iHomefinder requires their users enter their iHomefinder email and password in order to connect to their API. For more info, refer to iHomefinder’s documentation
Pipedream recommends using a strong and unique password for your iHomefinder account.