Google_Service

Copyright 2010 Google Inc.

Defined (1)

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

/vendor/google/apiclient/src/Google/Service.php  
  1. class Google_Service 
  2. public $batchPath; 
  3. public $rootUrl; 
  4. public $version; 
  5. public $servicePath; 
  6. public $availableScopes; 
  7. public $resource; 
  8. private $client; 
  9.  
  10. public function __construct(Google_Client $client) 
  11. $this->client = $client; 
  12.  
  13. /** 
  14. * Return the associated Google_Client class. 
  15. * @return Google_Client 
  16. */ 
  17. public function getClient() 
  18. return $this->client; 
  19.  
  20. /** 
  21. * Create a new HTTP Batch handler for this service 
  22. * @return Google_Http_Batch 
  23. */ 
  24. public function createBatch() 
  25. return new Google_Http_Batch( 
  26. $this->client,  
  27. false,  
  28. $this->rootUrl,  
  29. $this->batchPath 
  30. );