with verifi.email and Have I Been Pwned?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
verifi_email: {
type: "app",
app: "verifi_email",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.verifi.email/check`,
params: {
token: `${this.verifi_email.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
have_i_been_pwned: {
type: "app",
app: "have_i_been_pwned",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://haveibeenpwned.com/api/v3/subscribeddomains`,
headers: {
"hibp-api-key": `${this.have_i_been_pwned.$auth.api_key}`,
},
})
},
})