with HigherGov and SpamCheck.ai?
Emit new event when a pursuit is added to the pipeline.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
highergov: {
type: "app",
app: "highergov",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.highergov.com/api-external/people`,
params: {
api_key: `${this.highergov.$auth.api_key}`,
},
})
},
})
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,
})
},
})