with iHomefinder and DitLead?
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ditlead: {
type: "app",
app: "ditlead",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://api.ditlead.com/v1/apikey/validate`,
headers: {
Authorization: `Bearer ${this.ditlead.$auth.api_key}`,
},
})
},
})