CodeIgniter Forums
upload video to youtube remotely using codeigniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: upload video to youtube remotely using codeigniter (/showthread.php?tid=44584)



upload video to youtube remotely using codeigniter - El Forum - 08-19-2011

[eluser]Unknown[/eluser]
Hi, I need the functionality of uploading videos to youtube using codeigniter, could anyone tell me how to do that ?

Thanks for your help


upload video to youtube remotely using codeigniter - El Forum - 08-19-2011

[eluser]NeoArc[/eluser]
Try installing Zend Gdata

http://code.google.com/apis/youtube/2.0/developers_guide_php.html


upload video to youtube remotely using codeigniter - El Forum - 08-19-2011

[eluser]Unknown[/eluser]
[quote author="NeoArc" date="1313798228"]Try installing Zend Gdata

http://code.google.com/apis/youtube/2.0/developers_guide_php.html[/quote]


Isn't there a library for codeigniter? I mean youtube-codeigniter library..


upload video to youtube remotely using codeigniter - El Forum - 08-19-2011

[eluser]NeoArc[/eluser]
You can try setting up your include path, and then calling Gdata clases from inside the controller

Copy the Zend Directory inside your library directory

Code:
set_include_path(get_include_path().PATH_SEPARATOR.FCPATH.'/application/libraries');

require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata_YouTube');
$yt = new Zend_Gdata_YouTube();

BTW, this code is not complete/validated, keep trying.