* The PageSpeed Insights API lets you analyze the performance of your website * with a simple API. It offers tailored suggestions for how you can optimize * your site, and lets you easily integrate PageSpeed Insights analysis into * your development tools and workflow.

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class PagespeedInsights extends \Google\Site_Kit_Dependencies\Google\Service { /** Associate you with your personal info on Google. */ const OPENID = "openid"; public $pagespeedapi; public $rootUrlTemplate; /** * Constructs the internal representation of the PagespeedInsights service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://pagespeedonline.googleapis.com/'; $this->rootUrlTemplate = $rootUrl ?: 'https://pagespeedonline.UNIVERSE_DOMAIN/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v5'; $this->serviceName = 'pagespeedonline'; $this->pagespeedapi = new \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\Resource\Pagespeedapi($this, $this->serviceName, 'pagespeedapi', ['methods' => ['runpagespeed' => ['path' => 'pagespeedonline/v5/runPagespeed', 'httpMethod' => 'GET', 'parameters' => ['url' => ['location' => 'query', 'type' => 'string', 'required' => \true], 'captchaToken' => ['location' => 'query', 'type' => 'string'], 'category' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'locale' => ['location' => 'query', 'type' => 'string'], 'strategy' => ['location' => 'query', 'type' => 'string'], 'utm_campaign' => ['location' => 'query', 'type' => 'string'], 'utm_source' => ['location' => 'query', 'type' => 'string']]]]]); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights');