iCalendar is an open standard for exchanging calendar and scheduling information between users and computers.
import ical2json from "ical2json";
import { axios } from "@pipedream/platform";
export default defineComponent({
props: {
ical: {
type: "app",
app: "ical",
}
},
async run({steps, $}) {
//Retrieves iCal file from provided URL
const resp = await axios($, {
url: this.ical.$auth.url
});
//Converts retrieved iCal data into JSON format
const calendarData = ical2json.convert(resp);
if (!calendarData.VCALENDAR.length) {
$end("No calendars")
}
return calendarData;
},
})
The Schedule app in Pipedream is a powerful tool that allows you to trigger workflows at regular intervals, ranging from every minute to once a year. This enables the automation of repetitive tasks and the scheduling of actions to occur without manual intervention. By leveraging this API, you can execute code, run integrations, and process data on a reliable schedule, all within Pipedream's serverless environment.