library/Garp/Model/Behavior/Vimeoable.php
protected function _setVimeoAccessToken(Garp_Service_Vimeo_Pro $vimeo) {
        /**
         * See if the currently logged in user has Vimeo credentials related to her,
         * and use the token and token secret.
         * That way a user can fetch private videos thru the API.
         */
        $garpAuth = Garp_Auth::getInstance();
        if (!$garpAuth->isLoggedIn()) {
            return;
        }
        $currentUser = $garpAuth->getUserData();
        $authVimeoModel = new Model_AuthVimeo();
        $authVimeoRecord = $authVimeoModel->fetchRow(
            $authVimeoModel->select()->where('user_id = ?', $currentUser['id'])
        );
        if ($authVimeoRecord) {
            $vimeo->setAccessToken($authVimeoRecord->access_token);
            $vimeo->setAccessTokenSecret($authVimeoRecord->access_token_secret);
        }
    }
protected function _setVimeoAccessToken(Garp_Service_Vimeo_Pro $vimeo) {
        /**
         * See if the currently logged in user has Vimeo credentials related to her,
         * and use the token and token secret.
         * That way a user can fetch private videos thru the API.
         */
        $garpAuth = Garp_Auth::getInstance();
        if (!$garpAuth->isLoggedIn()) {
            return;
        }
        $currentUser = $garpAuth->getUserData();
        $authVimeoModel = new Model_AuthVimeo();
        $authVimeoRecord = $authVimeoModel->fetchRow(
            $authVimeoModel->select()->where('user_id = ?', $currentUser['id'])
        );
        if ($authVimeoRecord) {
            $vimeo->setAccessToken($authVimeoRecord->access_token);
            $vimeo->setAccessTokenSecret($authVimeoRecord->access_token_secret);
        }
    }
protected function _setVimeoAccessToken ( Garp_Service_Vimeo_Pro $ vimeo ) { /**
         * See if the currently logged in user has Vimeo credentials related to her,
         * and use the token and token secret.
         * That way a user can fetch private videos thru the API.
         */ $ garpAuth = Garp_Auth :: getInstance ( ) ; if ( ! $ garpAuth -> isLoggedIn ( ) ) { return ; } $ currentUser = $ garpAuth -> getUserData ( ) ; $ authVimeoModel = new Model_AuthVimeo ( ) ; $ authVimeoRecord = $ authVimeoModel -> fetchRow ( $ authVimeoModel -> select ( ) -> where ( 'user_id = ?' , $ currentUser [ 'id' ] ) ) ; if ( $ authVimeoRecord ) { $ vimeo -> setAccessToken ( $ authVimeoRecord -> access_token ) ; $ vimeo -> setAccessTokenSecret ( $ authVimeoRecord -> access_token_secret ) ; } }
Set Vimeo access token

@param Garp_Service_Vimeo_Pro $vimeo
@return void
Set Vimeo access token