I am using Ruby on Rails with the Google Drive API (https://github.com/gimite/google-drive-ruby) and I am trying to display data from a spreadsheet on my Google-account in a webpage.
This is the code I use to authorize the application to use my Google Drive account. I have generated credentials for a service account in Google Developers console.
def build_client(credentials)
client = Google::APIClient.new
client.authorization = credentials
client = client.discovered_api('drive', 'v2')
client
end
Now to access the files I need to start a new session but there is only documentation on how to start a session when you authorize the application via OAuth (https://github.com/gimite/google-drive-ruby#how-to-use) and I am using the credentials generated in Developers Console... what I am trying to figure out is how to start a session when logged in with pre-generated credentials for a service account.