Google_Oauth2Service

Service definition for Google_Oauth2 (v2).

Defined (1)

The class is defined in the following location(s).

/src/contrib/Google_Oauth2Service.php  
  1. class Google_Oauth2Service extends Google_Service { 
  2. public $userinfo; 
  3. public $userinfo_v2_me; 
  4. /** 
  5. * Constructs the internal representation of the Oauth2 service. 
  6. * @param Google_Client $client 
  7. */ 
  8. public function __construct(Google_Client $client) { 
  9. $this->servicePath = ''; 
  10. $this->version = 'v2'; 
  11. $this->serviceName = 'oauth2'; 
  12.  
  13. $client->addService($this->serviceName, $this->version); 
  14. $this->userinfo = new Google_UserinfoServiceResource($this, $this->serviceName, 'userinfo', json_decode('{"methods": {"get": {"id": "oauth2.userinfo.get", "path": "oauth2/v2/userinfo", "httpMethod": "GET", "response": {"$ref": "Userinfo"}, "scopes": ["https://www.googleapis.com/auth/plus.login", "https://www.googleapis.com/auth/plus.me", "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile"]}}}', true)); 
  15. $this->userinfo_v2_me = new Google_UserinfoV2MeServiceResource($this, $this->serviceName, 'me', json_decode('{"methods": {"get": {"id": "oauth2.userinfo.v2.me.get", "path": "userinfo/v2/me", "httpMethod": "GET", "response": {"$ref": "Userinfo"}, "scopes": ["https://www.googleapis.com/auth/plus.login", "https://www.googleapis.com/auth/plus.me", "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile"]}}}', true)); 
  16.