with Ory and WeKan?
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: {
wekan: {
type: "app",
app: "wekan",
}
},
async run({steps, $}) {
const data = {
"username": ${this.wekan.$auth.username},
"password": ${this.wekan.$auth.password}
}
return await axios($, {
url: `${this.wekan.$auth.api_url}/api/boards`,
headers: {
Authorization: `Bearer ${this.wekan.$auth.oauth_access_token}`,
"accept": `application/json`,
},
data,
})
},
})