• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

myuhe/org-gcal.el: Org sync with Google Calendar

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

myuhe/org-gcal.el

开源软件地址(OpenSource Url):

https://github.com/myuhe/org-gcal.el

开源编程语言(OpenSource Language):

Emacs Lisp 100.0%

开源软件介绍(OpenSource Introduction):

Org-Gcal http://melpa.org/packages/org-gcal-badge.svg

org-gcal offers

  • Fetch google calendar event
  • Post/edit org element
  • Sync between Org and Gcal

Requirements

  • tkf/emacs-request
  • jwiegley/alert

    org-gcal is now available in the famous emacs package repo MELPA, so the recommended way is to install it through Emacs package management system.

Installation

  1. Go to Google Developers Console
  2. Create a project (with any name)
  3. Click on the project
  4. Click on APIs & Auth then Credentials
  5. Click on Create New Client ID with Application type Installed application, Installed application type Other
  6. Click on Create Client ID
  7. Record the Client ID and Client secret for setup.
  8. Under the same APIs & Auth menu section, select APIs
  9. Scroll down to Calendar API. Click the Status button to enable calendar API access to the app you created in steps 5 & 6.

    Go to Google setting page to check the calendar ID.

  10. Go to Google setting page and click the gear-shaped settings icon in the upper right, then select “Settings” from the drop down list.
  11. Select the “Calendars” tab, which will display a list of your calendars.
  12. 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.
  13. 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.

Setting example

(require 'org-gcal)
(setq org-gcal-client-id "your-id-foo.apps.googleusercontent.com"
      org-gcal-client-secret "your-secret"
      org-gcal-file-alist '(("[email protected]" .  "~/schedule.org")
                            ("[email protected]" .  "~/task.org")))

Usage

org-gcal-sync

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.

Similar application

dengste/org-caldav




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap