with Security Reporter and GenderAPI.io?
Emit new event when an assessment is created.
Emit new event when a finding is created.
Emit new event when a finding is updated.
Creates a new security assessment. See the documentation
Send an Email to Gender request to GenderAPI. See the documentation
Creates a new security finding. See the documentation
Send a Name to Gender request to GenderAPI. See the documentation
Updates an existing security finding. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
security_reporter: {
type: "app",
app: "security_reporter",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.security_reporter.$auth.base_url}/api/v1/users/me`,
headers: {
Authorization: `Bearer ${this.security_reporter.$auth.api_token}`,
"Content-Type": `application/json`,
"Accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
genderapi_io: {
type: "app",
app: "genderapi_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.genderapi.io/api/`,
params: {
name: `John Smith`,
key: `${this.genderapi_io.$auth.api_key}`,
},
})
},
})