library/Garp/Service/Vimeo/Pro/Method/Videos.php
public function addCast($user_id, $video_id, $role = null) {
        if (!$this->getAccessToken()) {
            throw new Garp_Service_Vimeo_Exception('This method requires an authenticated user. '.
                'Please provide an access token.');
        }
        $params = array('user_id' => $user_id, 'video_id' => $video_id);
        if ($role) {
            $params['role'] = $role;
        }
        $response = $this->request('videos.addCast', $params);
        return $response;
    }
public function addCast($user_id, $video_id, $role = null) {
        if (!$this->getAccessToken()) {
            throw new Garp_Service_Vimeo_Exception('This method requires an authenticated user. '.
                'Please provide an access token.');
        }
        $params = array('user_id' => $user_id, 'video_id' => $video_id);
        if ($role) {
            $params['role'] = $role;
        }
        $response = $this->request('videos.addCast', $params);
        return $response;
    }
public function addCast ( $ user_id , $ video_id , $ role = null ) { if ( ! $ this -> getAccessToken ( ) ) { throw new Garp_Service_Vimeo_Exception ( 'This method requires an authenticated user. ' . 'Please provide an access token.' ) ; } $ params = array ( 'user_id' => $ user_id , 'video_id' => $ video_id ) ; if ( $ role ) { $ params [ 'role' ] = $ role ; } $ response = $ this -> request ( 'videos.addCast' , $ params ) ; return $ response ; }
Add a specified user as a cast member to the video.
@param String $user_id The user to add as a cast member.
@param String $video_id The video to add the cast member to.
@param String $role The role of the user in the video.
@return Array
Add a specified user as a cast member to the video .