This GAS allows you to sync events of Google Calendar.
e.g. You have [email protected]
and [email protected]
- Fetch events of
[email protected]
- Check guests of each event
- If
[email protected]
is not invited to the event, the script invites[email protected]
- If
[email protected]
is already invited and has set a YES/NO status, the script updates the status of[email protected]
- If
[email protected]
and[email protected]
have opposite statuses, the script notifies Slack
- Fetch events of
[email protected]
- Check guests of each event
- If
[email protected]
is not invited to the event, the script invites[email protected]
- If
[email protected]
is already invited and has set a YES/NO status, the script updates the status of[email protected]
- If
[email protected]
and[email protected]
have opposite statuses, the script notifies Slack
IT IS REQUIRED TO EXECUTE THE SCRIPT ON BOTH ACCOUNTS TO SYNC EVENTS.
To execute the GAS, please configure GUEST_IDS
.
GUEST_IDS
: Email address(es) that you want to invite as guests for your events.
Click Services
on the sidebar of the Google Apps Script Editor, and add Google Calendar API (Version v3)
.
You may simply run the init
method from the editor. It will sync your calendar and create a trigger that runs the script every 5 minutes.