import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
the_events_calendar: {
type: "app",
app: "the_events_calendar",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.the_events_calendar.$auth.api_url}/wp-json/tribe/events/v1/organizers`,
auth: {
username: `${this.the_events_calendar.$auth.username}`,
password: `${this.the_events_calendar.$auth.application_password}`,
},
})
},
})
The Events Calendar uses API keys for authentication. When you connect your The Events Calendar account, Pipedream securely stores the keys so you can easily authenticate to The Events Calendar APIs in both code and no-code steps.