with Twake and AlienVault?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
twake: {
type: "app",
app: "twake",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://web.twake.app/api/console/v1/me`,
headers: {
Authorization: `Bearer ${this.twake.$auth.oauth_access_token}`,
"content-type": `application/json`,
},
})
},
})
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}`,
},
})
},
})