url_call = $url; } /** * Obtiene la URL corta generada por Abbrr * * @param string $type Formato en el que se desea la URL abreviada [xml,link,html,bbcode,markdown,textile]. * @return string La URL abreviada. */ function get($type="link") { $url_complete = "http://api.abbrr.com/api.php?out=".$type."&url=".$this->url_call; $str = file_get_contents($url_complete); return $str; } } ?>