library/Garp/Service/Bitly.php
public function shorten(array $params) {
        $params = $params instanceof Garp_Util_Configuration ? $params : new Garp_Util_Configuration($params);
        $params->obligate('longUrl');
        return $this->request('shorten', (array)$params);
    }
public function shorten(array $params) {
        $params = $params instanceof Garp_Util_Configuration ? $params : new Garp_Util_Configuration($params);
        $params->obligate('longUrl');
        return $this->request('shorten', (array)$params);
    }
public function shorten ( array $ params ) { $ params = $ params instanceof Garp_Util_Configuration ? $ params : new Garp_Util_Configuration ( $ params ) ; $ params -> obligate ( 'longUrl' ) ; return $ this -> request ( 'shorten' , ( array ) $ params ) ; }
Shorten a URL
@param Array $params
@return stdClass
Shorten a URL