Show private video with api google - From PHP? -
i show private videos youtube channel on website.
i have logged in , got information videos, can't display them. if try show iframe done, i'm not allowed since video private.
require_once 'zend/loader.php'; // zend dir must in include_path zend_loader::loadclass('zend_gdata_youtube'); zend_loader::loadclass('zend_gdata_authsub'); zend_loader::loadclass('zend_gdata_clientlogin'); $httpclient = zend_gdata_clientlogin::gethttpclient( "pepito@gmail.com", "pepito222", 'youtube' ); $yt = new zend_gdata_youtube( $httpclient, null, null, "ai39si4z-hqxkpxfary5xi3ypkoo684thf0jccufnz6mp0k_swsssss8zvxjvtpmkoqmko4xwdqkutjqyhu2ougqure2g" ); $playlistlistfeed = $yt->getplaylistlistfeed("pepitochannel"); //var_dump($playlistlistfeed); exit;
Comments
Post a Comment