27 Oct '12, 2am

天使やカイザーと呼ばれて » Google Drive APIをRuby on Railsから叩く方法

天使やカイザーと呼ばれて » Google Drive APIをRuby on Railsから叩く方法

token_info = Session.get_gdrive_session(token) raise 'Not authorized' unless token_info if Time.now > (token_info['issue_timestamp'] + token_info['expires_in']) client = Google::APIClient.new client.authorization.client_id = CLIENT_ID client.authorization.client_secret = CLIENT_SECRET client.authorization.update_token!(token_info) client.authorization.grant_type = 'refresh_token' token_info = client.authorization.fetch_access_token! token_info['issue_timestamp'] = Time.now Session.set_gdrive_session(token, token_info) end token_info

Full article: http://www.eisbahn.jp/yoichiro/2012/10/google-drive-api-r...

Tweets

A Google Drive On Wheels:

A Google Drive On Wheels:

seroundtable.com 31 Oct '12, 12pm

John Mueller, a Google Webmaster Trends Analysts in Zurich, is working on building a different type of Google Drive with s...

Google Drive Adds Google+ Sharing Functions

Google Drive Adds Google+ Sharing Functions

searchenginewatch.com 02 Nov '12, 11am

Google has announced another upgrade to its Google Drive storage and sharing tool that will allow users to post informatio...

Verisign Blames Google For Drop In Domain Registration & Renewal Rates

Verisign Blames Google For Drop In Domain Regis...

searchengineland.com 26 Oct '12, 7pm

First of all, you recall that back in 2009, that was really the first time that we saw a major change in search algorithms...

China innovation drive defies conventional wisdom: via @eetimes

China innovation drive defies conventional wisd...

eetimes.com 26 Oct '12, 1am

WASHINGTON – The widely held view in the West is that the centers of Chinese innovation can be found in Beijing, with its ...

Gurney Drive, Penang

Gurney Drive, Penang

Gurney Drive Mention Penang and what comes to mind? For me, it's the iconic Penang Laksa and Char Kway Teow (Penangites sp...