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}`,
},
})
},
})
Planly uses API keys for authentication. When you connect your Planly account, Pipedream securely stores the keys so you can easily authenticate to Planly APIs in both code and no-code steps.