with Click & Sign and Have I Been Pwned?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
click_sign: {
type: "app",
app: "click_sign",
}
},
async run({steps, $}) {
const data = {
"request": `GET_CONFIG_LIST`,
"user": `${this.click_sign.$auth.username}`,
}
return await axios($, {
method: "post",
url: `https://api.lleida.net/cs/v1/get_config_list`,
headers: {
"authorization": `x-api-key ${this.click_sign.$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}`,
},
})
},
})