protected function getUrl($url)
	{
		try {
			$response = $this->webClient->get($url);
		} catch (\Exception $e) {
			if ($e instanceof ClientException && $e->hasResponse())
				throw new YoutubeException($e->getResponse()->getReasonPhrase(), 3);
			else
				throw new YoutubeException($e->getMessage(), 3);
		}
		return $response;
	}
protected function getUrl($url)
	{
		try {
			$response = $this->webClient->get($url);
		} catch (\Exception $e) {
			if ($e instanceof ClientException && $e->hasResponse())
				throw new YoutubeException($e->getResponse()->getReasonPhrase(), 3);
			else
				throw new YoutubeException($e->getMessage(), 3);
		}
		return $response;
	}
protected function getUrl ( $ url ) { try { $ response = $ this -> webClient -> get ( $ url ) ; } catch ( \ Exception $ e ) { if ( $ e instanceof ClientException && $ e -> hasResponse ( ) ) throw new YoutubeException ( $ e -> getResponse ( ) -> getReasonPhrase ( ) , 3 ) ; else throw new YoutubeException ( $ e -> getMessage ( ) , 3 ) ; } return $ response ; }
Fetches content of passed URL

@throws YoutubeException If any error happens

@param  string $url Address of page to fetch
@return ResponseInterface           content of page
Fetches content of passed URL