开发者

Auto-Fetch All YouTube Videos From Account

开发者 https://www.devze.com 2022-12-19 04:09 出处:网络
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 us开发者

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 us开发者_StackOverflowing PHP in order to accomplish this, but otherwise I am open to suggestions of how to accomplish this.

Thanks for any help.


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));
    }
    
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号