I'm using the google-api-ruby-client
gem in rails.
In the examples I found an example to load GooglePlus data:
client = Google::Apis::PlusV1::PlusService.new
client.key = ENV['GOOGLE_CLIENT_ID']
client.authorization = authorization
I have already obtained both refresh_token
and the auth_token
with another method (using devise oauth).
How can I generate the authorization
object, starting from the tokens I have?