import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
morgen: {
type: "app",
app: "morgen",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.morgen.so/v3/calendars/list`,
headers: {
"authorization": `ApiKey ${this.morgen.$auth.api_key}`,
},
})
},
})
Morgen uses API keys for authentication. When you connect your Morgen account, Pipedream securely stores the keys so you can easily authenticate to Morgen APIs in both code and no-code steps.