GoogleCalendar - IEEE-Team-3/map GitHub Wiki
The Google Calendar integration allows the app to sync important events such as task deadlines, meetings, and announcements with a user’s Google Calendar. This helps users stay on top of their tasks and other important activities by having them in one place.
- Event Sync: Automatically create and update events on the user’s Google Calendar based on task deadlines, announcements, and other key dates.
- Meeting Scheduling: Schedule meetings and sync them directly to users’ Google Calendar.
- Event Notifications: Send notifications to users via Google Calendar reminders for upcoming deadlines or meetings.
- A user creates a new task with a deadline in the app.
- The system creates a corresponding event on the user’s Google Calendar.
- The user receives a reminder on their Google Calendar as the deadline approaches.
const { google } = require('googleapis');
const calendar = google.calendar('v3');
async function createEvent(auth) {
const event = {
summary: 'Task Deadline: Fix login issue',
start: {
dateTime: '2025-04-30T10:00:00-07:00',
timeZone: 'America/Los_Angeles',
},
end: {
dateTime: '2025-04-30T11:00:00-07:00',
timeZone: 'America/Los_Angeles',
},
reminders: {
useDefault: true,
},
};
const res = await calendar.events.insert({
auth,
calendarId: 'primary',
resource: event,
});
console.log('Event created: %s', res.data.htmlLink);
}