with GenderAPI.io and AlienVault?
Send an Email to Gender request to GenderAPI. See the documentation
Send a Name to Gender request to GenderAPI. See the documentation
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
alienvault: {
type: "app",
app: "alienvault",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://otx.alienvault.com/api/v1/users/me`,
headers: {
"x-otx-api-key": `${this.alienvault.$auth.otx_key}`,
},
})
},
})