Go to Google setting page and click the gear-shaped settings icon in the upper right, then select “Settings” from the drop down list.
Select the “Calendars” tab, which will display a list of your calendars.
Select the calendar you would like to synchronize with. This will take you to the “Calendar Details” page for that calendar. Near the end is a section titled “Calendar Address”. Following the XML, ICAL, and HTML tags, you will see your Calendar ID.
Copy the Calendar ID for use in the settings below, where you will use it as the first element in the org-gcal-file-alist for associating calendars with specific org files. You can associate different calendars with different org files, so repeat this for each calendar you want to use.
Sync between Org and Gcal. before syncing, execute org-gcal-fetch .
org-gcal-fetch
Fetch Google calendar events and populate org-gcal-file-alist locations. The org files in org-gcal-file-alist should be blank or all of their headlines should have timestamps.
org-gcal-post-at-point
Post/edit org block at point to Google calendar.
org-gcal-delete-at-point
Delete Gcal event at point.
org-gcal-refresh-token
Refresh the OAuth token. OAuth token expired in 3600 seconds, You should refresh token on a regular basis.
请发表评论