with Ory and Siteglide?
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`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
siteglide: {
type: "app",
app: "siteglide",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.siteglide.$auth.site_url}api/site/v2/users`,
headers: {
"accept": `*/*`,
"x-api-key": `${this.siteglide.$auth.api_key}`,
"x-site-id": `${this.siteglide.$auth.site_id}`,
},
})
},
})