/**
* Retorna todas as informações da $url.
* Para saber que tipo de informações são retornadas veja o link.
* @link http://oembed.com
* @param string $url A Url cujo queres informações.
* @return null/array Retorna null se houver erro ao buscar informações sobre a $url. Ou um array com informações sobre a url.
*/
public function fetchUrlInfo($url, $config = array())
{
if (!empty($config)) {
$embera = new Embera($config);
} else {
$embera = new Embera();
}
// $embera = new \Embera\Formatter($embera);
$urlInfo = $embera->getUrlInfo($url);
$errors = $embera->getErrors();
if (!empty($urlInfo) and empty($errors)) {
$this->_urlInfo = $urlInfo;
return $urlInfo;
}
return $errors;
}