How can I change the request url from Zend_Gdata_Youtube to actually work with API v3?

Ok, I think this may sound strange, but I have an entire web application using Zend Framework connecting to the previous Youtube API. The thing is, I have a bunch of code, a lot of work on this code, and it seems Zend is not updating it, so I can use API 3.

I found the error because the youtube.php file uses this url:

const USER_URI = 'https://gdata.youtube.com/feeds/api/users';
    const VIDEO_URI = 'https://gdata.youtube.com/feeds/api/videos';
    const PLAYLIST_REL = 'http://gdata.youtube.com/schemas/2007#playlist';
    const USER_UPLOADS_REL = 'http://gdata.youtube.com/schemas/2007#user.uploads';
    const USER_PLAYLISTS_REL = 'http://gdata.youtube.com/schemas/2007#user.playlists';
    const USER_SUBSCRIPTIONS_REL = 'http://gdata.youtube.com/schemas/2007#user.subscriptions';
    const USER_CONTACTS_REL = 'http://gdata.youtube.com/schemas/2007#user.contacts';
    const USER_FAVORITES_REL = 'http://gdata.youtube.com/schemas/2007#user.favorites';
    const VIDEO_RESPONSES_REL = 'http://gdata.youtube.com/schemas/2007#video.responses';
    const VIDEO_RATINGS_REL = 'http://gdata.youtube.com/schemas/2007#video.ratings';
    const VIDEO_COMPLAINTS_REL = 'http://gdata.youtube.com/schemas/2007#video.complaints';
    const ACTIVITY_FEED_URI = 'https://gdata.youtube.com/feeds/api/events';
    const FRIEND_ACTIVITY_FEED_URI =
        'https://gdata.youtube.com/feeds/api/users/default/friendsactivity';

      

I think this should be changed to the new request url, but I think this is happening throughout the code and I don't know how to change the situation so that I can work with the new API.

The error I am getting:

PHP Fatal error: Throw exception "Zend_Gdata_App_HttpException" with message "Expected response code 200, received 410 is no longer available" in C: ...

I hope you can help me. Thank!

+3


source to share


1 answer


See the readme on the repo page :



This component is not supported. If you need access to the google api, please consider using https://code.google.com/p/google-api-php-client/

0


source







All Articles