with Cortex and Exist?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cortex: {
type: "app",
app: "cortex",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.cortex.$auth.api_url}/api/user`,
headers: {
Authorization: `Bearer ${this.cortex.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
exist: {
type: "app",
app: "exist",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://exist.io/api/2/accounts/profile/`,
headers: {
Authorization: `Bearer ${this.exist.$auth.oauth_access_token}`,
},
})
},
})