with ESPY and AlienVault?
Get the results of the lookup with the provided ID. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
espy: {
type: "app",
app: "espy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://irbis.espysys.com/api/request-monitor/credit-stat`,
headers: {
"accept": `application/json`,
"content-type": `application/json`,
},
params: {
key: `${this.espy.$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}`,
},
})
},
})