Google_PagespeedonlineService

Service definition for Google_Pagespeedonline (v1).

Defined (1)

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

/inc/google-api-php-client/src/contrib/Google_PagespeedonlineService.php  
  1. class Google_PagespeedonlineService extends Google_Service { 
  2. public $pagespeedapi; 
  3. /** 
  4. * Constructs the internal representation of the Pagespeedonline service. 
  5. * @param Google_Client $client 
  6. */ 
  7. public function __construct(Google_Client $client) { 
  8. $this->servicePath = 'pagespeedonline/v1/'; 
  9. $this->version = 'v1'; 
  10. $this->serviceName = 'pagespeedonline'; 
  11.  
  12. $client->addService($this->serviceName, $this->version); 
  13. $this->pagespeedapi = new Google_PagespeedapiServiceResource($this, $this->serviceName, 'pagespeedapi', json_decode('{"methods": {"runpagespeed": {"httpMethod": "GET", "response": {"$ref": "Result"}, "id": "pagespeedonline.pagespeedapi.runpagespeed", "parameters": {"locale": {"type": "string", "location": "query"}, "url": {"required": true, "type": "string", "location": "query"}, "rule": {"repeated": true, "type": "string", "location": "query"}, "strategy": {"enum": ["desktop", "mobile"], "type": "string", "location": "query"}}, "path": "runPagespeed"}}}', true)); 
  14.