Exemplo n.º 1
0
 /**
  * @param string $identifier
  * @param string $strategy
  * @param string $locale
  * @return string
  */
 protected function getResponseFromApi($identifier, $strategy, $locale = 'en')
 {
     $url = sprintf('https://www.googleapis.com/pagespeedonline/v2/runPagespeed?screenshot=true&url=%s&strategy=%s&locale=%s&key=%s', rawurlencode($identifier), $strategy, $locale, $this->configuration->getKey());
     return $this->apiCall($url);
 }