1 / 16

Youtube data api & Zend Framework

Youtube data api & Zend Framework. Reporters: Ching Long Chen Supervisor : Hsing Mei Date: 2008/10/16. Web Computing Laboratory Computer Science and Information Engineering Department Fu Jen Catholic University. Introduction Background and Related Work Evaluation Conclusion Reference.

lowell
Download Presentation

Youtube data api & Zend Framework

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Youtube data api & Zend Framework Reporters: Ching Long Chen Supervisor : Hsing Mei Date: 2008/10/16 Web Computing Laboratory Computer Science and Information Engineering Department Fu Jen Catholic University

  2. Introduction Background and Related Work Evaluation Conclusion Reference Outline

  3. Introduction • Dydns • Appserv(apache+mysql+php) • Youtube data api • Zend framework

  4. Dydns configure

  5. appserv • AppServ version2.4.4a • * Apache 1.3.33 * PHP 4.3.10 * MySQL 4.1.8 * MyODBC-3.51.11-2 * phpMyAdmin-2.5.7-pl1AppServ version2.5.4a • * Apache 2.0.54 * PHP 5.0.4 * MySQL 4.1.12a * MyODBC-3.51.11-2 * phpMyAdmin-2.6.2pl1

  6. Youtube data api video app inphp

  7. Zend Framework • application/ controllers/ IndexController.php // 所有Controller一定要大寫開頭 models/ • views/ scripts/ index/ index.phtml • // 記得是phtml,不是html

  8. Zend Framework module • Zend_Auth // login module • Zend_Db // database module • Zend_Gdata // Google Application module

  9. ZendGdata-1.6.1\demos\Zend\Gdata\YouTubeVideoApp

  10. retrieve the comments for the video with the ID 'abc123813abc‘, use the following code: • $yt = new Zend_Gdata_YouTube(); • $commentFeed = $yt->getVideoCommentFeed('abc123813abc'); • foreach ($commentFeed as $commentEntry) • { • echo $commentEntry->title->text . "\n"; • echo $commentEntry->content->text . "\n\n\n"; • }

  11. Don’t know the video ID ,only has the URL • $yt = new Zend_Gdata_YouTube(); $videoEntry = $yt->getVideoEntry('abc123813abc'); • // we don't know the video ID in this example, but we do have the URL • $commentFeed = $yt->getVideoCommentFeed(null, $videoEntry->comments->href);

  12. Youtube data api • YouTube Data API • Developer's Guide • Java • .NET • PHP (now test) • Python • Reference Guide • Migration Guide • Developer Keys • Libraries and Code

  13. Use YouTube Data API • import gdata.youtube • import gdata.youtube.service • yt_service = gdata.youtube.service.YouTubeService()

  14. Reference • [1] Topic taxonomy adaptation for group profiling Lei Tang, Huan Liu, Jianping Zhang, Nitin Agarwal, John J. Salerno January 2008 ACM Transactions on Knowledge Discovery from Data (TKDD), Volume 1 Issue 4 • [2] Sandeep Pandey, Christopher Olston February 2008 WSDM '08: Proceedings of the international conference on Web search and web data mining • [3] Anupriya Ankolekar, Markus Krötzsch, Thanh Tran, Denny Vrandecic May 2007 WWW '07: Proceedings of the 16th international conference on World Wide Web • [4] Laurence A. F. Park, Kotagiri Ramamohanarao November 2007 CIKM '07: Proceedings of the sixteenth ACM conference on Conference on information and knowledge management

  15. [5] Timothy W. van der Horst, Kent E. Seamons May 2007 WWW '07: Proceedings of the 16th international conference on World Wide Web • [6] Kirstie Hawkey, Kori M. Inkpen May 2007 GI '07: Proceedings of Graphics Interface 2007 • [7] Chung-Yi Weng, Wei-Ta Chu, Ja-Ling Wu September 2007 MIR '07: Proceedings of the international workshop on Workshop on multimedia information retrieval • [8] Lyndon Kennedy, Mor Naaman, Shane Ahern, Rahul Nair, Tye Rattenbury September 2007 MULTIMEDIA '07: Proceedings of the 15th internationaconference on Multimedia

  16. [9] Alvin Chin, Mark Chignell August 2006 HYPERTEXT '06: Proceedings of the seventeenth conference on Hypertext and hypermedia • [10]Meishan Hu, Aixin Sun, Ee-Peng Lim November 2007 CIKM '07: Proceedings of the sixteenth ACM conference on Conference on information and knowledge management • http://code.google.com/apis/youtube/developers_guide_python.html#Comments • http://phorum.study-area.org/index.php?topic=50393.0

More Related