views:

94

answers:

1

Hi Everyone:

I have been looking through the YouTube API for awhile now, but am not finding a simple way to auto-fetch all videos from a certain account and then display them on the screen. I am planning on using PHP in order to accomplish this, but otherwise I am open to suggestions of how to accomplish this.

Thanks for any help.

+1  A: 

This is a fairly easy task. For PHP the procedure is described in this url

As a summary:

  • Make sure Zend_Gdata is downloaded and included
  • Use the following code to retrieve the listing

    function getAndPrintUserUploads($userName)                    
    {     
      $yt = new Zend_Gdata_YouTube();
      $yt->setMajorProtocolVersion(2);
      printVideoFeed($yt->getuserUploads($userName));
    }
    
Peter Smit
@PF1 You can also upvote the answer if you like it :)
Peter Smit