with Ory and Inferable?
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: {
inferable: {
type: "app",
app: "inferable",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.inferable.ai/clusters/${this.inferable.$auth.cluster_id}/usage`,
headers: {
Authorization: `Bearer ${this.inferable.$auth.api_key}`,
},
})
},
})