Search code examples
rubygoogle-apigoogle-api-ruby-client

How to combine several scopes with the google api ruby client?


I'm using the google api ruby client! and want to combine several scopes, eg https://www.googleapis.com/auth/userinfo.email and https://www.googleapis.com/auth/plus.me?

So far it seems like I can only use either or eg by using client.authorization.scope = 'https://www.googleapis.com/auth/plus.me'


Solution

  • All you need to do is pass an Array of scopes.