16 Sep '12, 5am

[Ruby]Google Calendar APIでカレンダーを取得するスクリプト | blogaomu

Google Calendar API – Google Apps Platform — Google Developers 特定のカレンダーのイベント一覧を取得して、CSVに出力するスクリプトを書いてみました。Githubはこちら→TAKAyukiatkwsk/google_calendar_util 環境の構築 % cd path/to/project % vi Gemfile source :rubygems gem "google-api-client" % bundle install --path vendor/bundle 次にGoogle APIs Consoleでアプリケーションを登録します。詳しくはここに書いてあります。https://developers.google.com/google-apps/calendar/firstapp?hl=ja#register アプリケーション登録後、APIs ConsoleのAPI AccessでClient IDとClient secretを取得します。 OAuth % bundle exec google-api oauth-2-login --scope=https://www.googleapis.com/auth/calendar --client-id=CLIENT_ID --client-secret=CLIENT_SECRET % cp ~/.google-api.yaml . 認証に成功すると、ホームディレクトリに.google-api.yaml というファイルができるので、このファイルをプロジェクトルートにコピーすします。 このyamlファイルにはClient ID, Client secret, scope(アクセス可能なAPIを示す), access token, refresh tokenが書かれています。セットアップとしてyamlを読み込んで認証情報を設定します。 Configure your APP を参照のこと。 APIメソッドは以下のように実行し...

Full article: http://blogaomu.com/2012/09/16/ruby-script-using-google-c...

Tweets

>>index.php вся суть #ruby

rubylearning.com 16 Sep '12, 8am

By Satish Talim RubyLearning.com is a thorough collection of Ruby Study Notes for those who are new to the Ruby programmin...

Ruby Sparks (In Digital)

gv.com.sg 19 Sep '12, 5am

Calvin (Paul Dano) is a young novelist who achieved phenomenal success early in his career but is now struggling with his ...

Salsa & Latin Dance Night September 22, 2012 at...

thev3h.com 23 Sep '12, 1am

scumbag canada post - delivers to branch in PoCo when theres one in Coquitlam Raffle Tickets are on sale this weekend at T...

Google's Anatomy

Google's Anatomy

searchenginewatch.com 20 Sep '12, 1pm

Organs in a body are interconnected: Just like a living person, Google is relying on all its organs to work if it is to tr...

Just launched a fun little project: iPad only, ...

gbca.org.au 19 Sep '12, 4am

Please select a walk Sustainable Sydney Walking Tour 1 Bligh St 1 Bligh St Case Study Building Website 30 The Bond 30 Hick...

The 2013 Green Roof Calendar is coming soon.

The 2013 Green Roof Calendar is coming soon.

greenroofs.com 28 Sep '12, 7pm

Indianapolis Children's Museum Green Roof in Indianapolis, IN. The Indianapolis Children's Museum installed a GreenGrid gr...

QiitaのAdvent Calendarに書いたらはてブたくさんついて嬉しい。 Ruby o...

qiita.com 10 Sep '12, 2am

Ruby on Rails Advent Calendar / Sep. Ruby on Rails Advent Calendar / Sep. に参加しているユーザー 参加者募集中! 詳細や参加登録はこちら: Ruby on Railsアド...

Calendar made of upcycled paint swatches. See how we did it:

Calendar made of upcycled paint swatches. See h...

earth911.com 17 Sep '12, 2pm

Whether you are a student, professional, stay-at-home mom, self-employed or unemployed, anyone can benefit from better vis...