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: {
spamcheck_ai: {
type: "app",
app: "spamcheck_ai",
}
},
async run({steps, $}) {
const data = {
"ip": "48.43.57.145",
"email": "john.smith@fabrikam.com",
"body": {},
"result": true,
"desired_outcome": true,
"notes": "Spam report"
}
return await axios($, {
method: "post",
url: `https://api.spamcheck.ai/api/v1/spam_reports`,
headers: {
"accept": `application/json`,
"Api-Key": `${this.spamcheck_ai.$auth.api_key}`,
},
data,
})
},
})