with Planly and Planpoint?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
planly: {
type: "app",
app: "planly",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://app.planly.com/api/teams/list`,
headers: {
Authorization: `Bearer ${this.planly.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
planpoint: {
type: "app",
app: "planpoint",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.planpoint.io/api/projects`,
headers: {
"authorization": `${this.planpoint.$auth.oauth_access_token}`,
},
})
},
})