Skip to content

Instantly share code, notes, and snippets.

@akkunchoi
Created February 2, 2012 16:07
Show Gist options
  • Save akkunchoi/1724252 to your computer and use it in GitHub Desktop.
Save akkunchoi/1724252 to your computer and use it in GitHub Desktop.
Ruby gcalapi example
# http://doruby.kbmj.com/trinityt_on_rails/20081022/Ruby_Google_
require 'rubygems'
require 'gcalapi'
$KCODE = "utf8"
# アカウントメールアドレス
mail = "{{address}}"
# パスワード
pass = "{{password}}"
# Googleカレンダーの「カレンダー設定」画面から取得した非公開URL
"http://www.google.com/calendar/feeds/...."
srv = GoogleCalendar::Service.new(mail, pass)
cal = GoogleCalendar::Calendar::new(srv, feed)
cal.events.each do |e|
p e
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment