diff --git a/composer.json b/composer.json index 0471e32..9283eec 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { - "name": "dsentker/phpinsights", + "name": "nightvis/phpinsights", "description": "A php wrapper for Googles page speed insights", - "version": "0.2.3", + "version": "0.2.5", "require": { "php": "^5.4 || ^7.0", "netresearch/jsonmapper": "^1.1", diff --git a/src/InsightsCaller.php b/src/InsightsCaller.php index 279e4f3..b7d9b1a 100644 --- a/src/InsightsCaller.php +++ b/src/InsightsCaller.php @@ -12,7 +12,7 @@ class InsightsCaller const STRATEGY_DESKTOP = 'desktop'; - const GI_API_ENDPOINT = 'https://www.googleapis.com/pagespeedonline/v2/runPagespeed?url=%s&strategy=%s&key=%s&locale=%s&screenshot=%s'; + const GI_API_ENDPOINT = 'https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=%s&strategy=%s&key=%s&locale=%s&screenshot=%s'; /** @var string */ private $apiKey; @@ -145,4 +145,4 @@ protected function createApiEndpointUrl($url, $strategy = 'mobile') } -} \ No newline at end of file +}