library/Garp/Model/Behavior/Vimeoable.php
protected function _getProVideo($url) {
        $vimeoVars = $this->_getVimeoConfig();
        $vimeo = new Garp_Service_Vimeo_Pro($vimeoVars->consumerKey, $vimeoVars->consumerSecret);
        $this->_setVimeoAccessToken($vimeo);

        // check if a Vimeo URL is given
        $pattern = '~vimeo.com/(?:video/)?([0-9]+)~';
        preg_match($pattern, $url, $matches);
        if (!isset($matches[1])) {
            throw new Garp_Model_Behavior_Exception(self::EXCEPTION_MISSING_VIMEO_ID);
        }
        $videoId = $matches[1];
        $video = $vimeo->videos->getInfo($videoId);
        return $video[0];
    }
protected function _getProVideo($url) {
        $vimeoVars = $this->_getVimeoConfig();
        $vimeo = new Garp_Service_Vimeo_Pro($vimeoVars->consumerKey, $vimeoVars->consumerSecret);
        $this->_setVimeoAccessToken($vimeo);

        // check if a Vimeo URL is given
        $pattern = '~vimeo.com/(?:video/)?([0-9]+)~';
        preg_match($pattern, $url, $matches);
        if (!isset($matches[1])) {
            throw new Garp_Model_Behavior_Exception(self::EXCEPTION_MISSING_VIMEO_ID);
        }
        $videoId = $matches[1];
        $video = $vimeo->videos->getInfo($videoId);
        return $video[0];
    }
protected function _getProVideo ( $ url ) { $ vimeoVars = $ this -> _getVimeoConfig ( ) ; $ vimeo = new Garp_Service_Vimeo_Pro ( $ vimeoVars -> consumerKey , $ vimeoVars -> consumerSecret ) ; $ this -> _setVimeoAccessToken ( $ vimeo ) ; // check if a Vimeo URL is given $ pattern = '~vimeo.com/(?:video/)?([0-9]+)~' ; preg_match ( $ pattern , $ url , $ matches ) ; if ( ! isset ( $ matches [ 1 ] ) ) { throw new Garp_Model_Behavior_Exception ( self :: EXCEPTION_MISSING_VIMEO_ID ) ; } $ videoId = $ matches [ 1 ] ; $ video = $ vimeo -> videos -> getInfo ( $ videoId ) ; return $ video [ 0 ] ; }
Retrieve Vimeo video from the Pro API

@param string $url Vimeo url
@return array
Retrieve Vimeo video from the Pro API