with Smartlead and AlienVault?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
smartlead: {
type: "app",
app: "smartlead",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://server.smartlead.ai/api/v1/client`,
params: {
api_key: `${this.smartlead.$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}`,
},
})
},
})