Google Document List APIを使う

これ使いたい
http://code.google.com/intl/ja/apis/documents/
google docsの中身のテキストを取得したい。

gem install gdocs4ruby

DocList API2.0を使うらしい

"あとで" で全ドキュメントを検索する

#!/usr/bin/env ruby
require 'rubygems'
require 'gdocs4ruby'
include GDocs4Ruby

service = Service.new
service.authenticate('mail@address.com', 'your-passwd')

p docs = Document.find(service, 'あとで')
puts docs.first.title
puts docs.first.get_content('txt') # pdf, html, doc, rtfなどがある
puts docs.first.id
docs.first.download_to_file('pdf', 'test.pdf')

API version2.0では、最新版のgoogle docsで作ったファイルの中身が取得できない・・・