with Planday and SwarmNode?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
planday: {
type: "app",
app: "planday",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://openapi.planday.com/hr/v1/Departments`,
headers: {
Authorization: `Bearer ${this.planday.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
swarmnode: {
type: "app",
app: "swarmnode",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.swarmnode.ai/v1/agents/`,
headers: {
Authorization: `Bearer ${this.swarmnode.$auth.api_key}`,
},
})
},
})