Any1 ever used API's for YouTube Mashup?

I’m working on a site that I intend to have communicating with Youtube videos via google API’s. I’ve started following the guide and I’ve got a script full of functions that lead to the following error:
Fatal error: Class ‘Zend_Gdata_AuthSub’ not found in C:\wamp\www_utube\index.php on line **18

**The code the I have looks like this:


<?php
require_once '../../zendframework-1.5.1/library/Zend/Loader.php'; // the Zend dir must be in your include_path
Zend_Loader::loadClass('Zend_Gdata_YouTube');
$yt = new Zend_Gdata_YouTube();

// start a new session 
session_start();

function getAuthSubRequestUrl()
{
    $next = 'http://www.conjunktiondesign.co.uk';
    $scope = 'http://gdata.youtube.com';
    $secure = false;
    $session = true;
    return Zend_Gdata_AuthSub::getAuthSubTokenUri($next, $scope, $secure, $session);
}

$sessionToken = Zend_Gdata_AuthSub::getAuthSubSessionToken($_GET['token']);

function getAuthSubHttpClient($developerKey)
{
    if (!isset($_SESSION['sessionToken']) && !isset($_GET['token']) ){
        echo '<a href="' . getAuthSubRequestUrl() . '">Login!</a>';
        return;
    } else if (!isset($_SESSION['sessionToken']) && isset($_GET['token'])) {
      $_SESSION['sessionToken'] = Zend_Gdata_AuthSub::getAuthSubSessionToken($_GET['token']);
    }
    
    $httpClient = Zend_Gdata_AuthSub::getHttpClient($_SESSION['sessionToken']);
    $httpClient->setHeaders('X-GData-Key', "key=${developerKey}");
    return $httpClient;
}

$yt = new Zend_Gdata_YouTube($httpClient);
?>

Has anyone here done stuff like this before?