== Task Overview ==
We'd like to add to Calendar the ability to support external Calendar sources. Ideally this would both read and write both ways. So if I create an event in Phabricator, it would update my Google Calendar and vise versa. The overall goal is many small companies use Google to manage their work calendar, and that information automatically synced to Phabricator is handy.
For this task you will need a Google account if you do not have one::
You will then need to register with Google APIs:
Go to Services in API Project and turn on Calendar API.
Getting started on implementation:
Google provides both a REST API and PHP Client Library
@epriestley to confirm which approach.
Similiar to Settings:
We want to add 'Linked Accounts' to the side nav in Calendar. It should for now just list Google and have a similar workflow to linking external profile accounts. My poor understanding is you will just use OAuth 2 by Google, which we should have existing infrastructure for. More details: https://developers.google.com/google-apps/calendar/auth
Google Calendar uses multiple Calendars to display data. 'Home', 'Work', 'Holidays', etc. To keep this task simple, I'd lean towards having the user pick one Calendar to sync to. If they have multiple, they need to select which Calendar. When they've selected a Calendar from Google to sync with, we should import all their Calendar data on Google into their Phabricator Calendar.