Offers support to manage Google Calendar events.
This guide uses a test account and credential. For production, LGU should enable a Google Account and Credential.
-
Open web browser and visit https://developers.google.com/calendar/quickstart/nodejs
-
Under Step 1: Turn on the Google Calendar API, click on Enable the Google Calendar API.
-
Enter on the Enter new project name and click Next.
-
On the Configure your OAuth Client, select Desktop App.
-
Click on DOWNLOAD CLIENT CONFIGURATION and save the file "credentials.json".
-
Copy both the Client ID and Client Key and save it on a file for later reference.
-
Click on Done.
-
Copy "credentials.json" on the "docker/calendar/credentials" folder.
-
Open "docker/calendar/docker-compose" and verify that the credentials folder is properly mounted.
-
Run calendar container.
-
Insert event
Url: /calender/event/insert
Method: POST
Body (example json event) :
{ summary: "Rameses Meeting", location: "Cebu City", description: "Monthly", start: { dateTime: "2020-09-10T09:00:00-07:00", timeZone: "Asia/Manila" }, end: { dateTime: "2020-09-10T12:00:00-07:00", timeZone: "Asia/Manila" }, recurrence: ["RRULE:FREQ=DAILY;COUNT=1"], attendees: [ { email: "jzamss@gmail.com" }, { email: "elmonazareno@gmail.com" } ], reminders: { useDefault: false, overrides: [ { method: "email", minutes: 1440 }, { method: "popup", minutes: 10 } ] } }
-
List events
Url: /calender/event/list
Method: GET