Node package manager
Emit new event with the latest count of downloads for an npm package. See the documentation.
Emit new event when a new version of an npm package is published. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
identitycheck: {
type: "app",
app: "identitycheck",
}
},
async run({steps, $}) {
const data = {
"firstName": "Sarah",
"lastName": "Husband",
"email": "sarah@frabrikam.com",
"emailUser": "Yes",
"type": "kyc",
"triggeredBy": "direct",
"active": true
}
return await axios($, {
method: "post",
url: `https://identity.stackgo.io/api/direct-verification`,
headers: {
"Authorization": `Basic ${this.identitycheck.$auth.api_key}`,
},
data,
})
},
})