'Exception: The parameters don't match the method signature for CalendarApp.getCalendarById

First of all, I apologize for any form of lack of basic coding knowledge. My question might come as infantile. Is there a way to export data from multiple emails from this script?

  // get the calendar
  const calendar = CalendarApp.getCalendarById(('[email protected]'),('[email protected]'),('[email protected]'), ('[email protected]'));
  Logger.log('The calendar is named "%s".', calendar.getName());

  // get the calendar events and create lookups
  const events = calendar.getEvents(syncStartDate, syncEndDate);
  const eventsLookup = events.reduce((jsn, event) => {
    jsn[event.getId()] = event;
    return jsn;
  }, {});


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source