with Flash (by Velora AI) and Have I Been Pwned?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
flash_by_velora_ai: {
type: "app",
app: "flash_by_velora_ai",
}
},
async run({steps, $}) {
const data = {
"feedback": `Pipedream.com is a great platform for automations! Highly recommended.`,
}
return await axios($, {
method: "post",
url: `https://flash-api.velora.ai/v1/api/add-feedback`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.flash_by_velora_ai.$auth.api_key}`,
},
data,
})
},
})
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}`,
},
})
},
})