import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lead_identity_check: {
type: "app",
app: "lead_identity_check",
}
},
async run({steps, $}) {
const data = {
"Firstname": `Sergio`,
"Lastname": `Wong`,
"Email": `sergio@pipedream.com`,
}
return await axios($, {
method: "post",
url: `https://leadidentitycheck-node.vercel.app/main/lic/v1`,
headers: {
" x-lic-key": `${this.lead_identity_check.$auth.api_key}`,
"filterkey": `${this.lead_identity_check.$auth.filter_key}`,
},
data,
})
},
})
Lead Identity Check uses API keys for authentication. When you connect your Lead Identity Check account, Pipedream securely stores the keys so you can easily authenticate to Lead Identity Check APIs in both code and no-code steps.