Google_PagespeedapiServiceResource
The "pagespeedapi" collection of methods.
Defined (1)
The class is defined in the following location(s).
- /src/contrib/Google_PagespeedonlineService.php
- class Google_PagespeedapiServiceResource extends Google_ServiceResource {
- /**
- * Runs Page Speed analysis on the page at the specified URL, and returns a Page Speed score, a list
- * of suggestions to make that page faster, and other information. (pagespeedapi.runpagespeed)
- *
- * @param string $url The URL to fetch and analyze
- * @param array $optParams Optional parameters.
- *
- * @opt_param string locale The locale used to localize formatted results
- * @opt_param string rule A Page Speed rule to run; if none are given, all rules are run
- * @opt_param bool screenshot Indicates if binary data containing a screenshot should be included
- * @opt_param string strategy The analysis strategy to use
- * @return Google_Result
- */
- public function runpagespeed($url, $optParams = array()) {
- $params = array('url' => $url);
- $params = array_merge($params, $optParams);
- $data = $this->__call('runpagespeed', array($params));
- if ($this->useObjects()) {
- return new Google_Result($data);
- } else {
- return $data;
- }
- }
- }