with Uspacy and Ory?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
uspacy: {
type: "app",
app: "uspacy",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.uspacy.$auth.domain}/company/v1/users/me`,
headers: {
Authorization: `Bearer ${this.uspacy.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ory: {
type: "app",
app: "ory",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.console.ory.sh/projects`,
headers: {
Authorization: `Bearer ${this.ory.$auth.workspace_api_key}`,
"Content-Type": `application/json`,
},
})
},
})