Google_Service_Pagespeedonline_Pagespeedapi_Resource

The "pagespeedapi" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/Pagespeedonline.php  
  1. class Google_Service_Pagespeedonline_Pagespeedapi_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Runs PageSpeed analysis on the page at the specified URL, and returns 
  5. * PageSpeed scores, a list of suggestions to make that page faster, and other 
  6. * information. (pagespeedapi.runpagespeed) 
  7. * @param string $url The URL to fetch and analyze 
  8. * @param array $optParams Optional parameters. 
  9. * @opt_param bool screenshot Indicates if binary data containing a screenshot 
  10. * should be included 
  11. * @opt_param string locale The locale used to localize formatted results 
  12. * @opt_param string rule A PageSpeed rule to run; if none are given, all rules 
  13. * are run 
  14. * @opt_param string strategy The analysis strategy to use 
  15. * @opt_param bool filter_third_party_resources Indicates if third party 
  16. * resources should be filtered out before PageSpeed analysis. 
  17. * @return Google_Service_Pagespeedonline_Result 
  18. */ 
  19. public function runpagespeed($url, $optParams = array()) 
  20. $params = array('url' => $url); 
  21. $params = array_merge($params, $optParams); 
  22. return $this->call('runpagespeed', array($params), "Google_Service_Pagespeedonline_Result");