FromDK / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

add or merge Scopes on apiClient #109

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I needed to use the scope of API Plus  and Contacts API, but just there is the 
Plus Service. And the apiClient dosen't allow increase the scope already added, 
or merge the scope setted by "setScopes" with the scopes of the Services.

To solve this i created one function "addScopes(scopes)" on apiClient class, to 
allow me to add other scopes at any position of my code and changed the method 
"prepareService" on apiClient to merge the scopes of setted on apiclient and 
the scopes of the services

I hope this could be in a future release, because i expect keep my google api 
library up to date.

Original issue reported on code.google.com by elielso...@gmail.com on 2 Apr 2012 at 7:16

GoogleCodeExporter commented 8 years ago
Adding extra services to the client should automatically include the scopes 
needed, so make sure you set up each service with the client before generating 
the auth URL.

Original comment by ianbar...@google.com on 22 Mar 2013 at 1:56