douweida2878 2010-02-06 18:38
浏览 52
已采纳

自动从帐户中获取所有YouTube视频

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条回答 默认 最新

  • dsa1230000 2010-02-08 09:05
    关注

    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));
      }
      
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序