with Ory and Cockpit?
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: {
cockpit: {
type: "app",
app: "cockpit",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.cockpit.$auth.server_url}/cockpit/api/content/items`,
headers: {
"api-key": `${this.cockpit.$auth.api_key}`,
"accept": `application/json`,
},
params: {
models: `{ "name":"x"}`,
},
})
},
})