php - What does the insertEntry in YOUTUBE API return? -


this use upload video youtube using youtube api.

$newentry = $yt->insertentry($myvideoentry, $uploadurl, 'zend_gdata_youtube_videoentry');

once upload, how can unique code of video uploaded ?? mean is, in url, http://www.youtube.com/watch?v=pbi3lc18k8q

"pbi3lc18k8q" unique code video. so, how video uploaded??

do code after upload it:

// assuming $videoentry object returned during upload $state = $videoentry->getvideostate();  if ($state) {   echo 'upload status video id ' . $videoentry->getvideoid() . ' ' .     $state->getname() . ' - ' . $state->gettext() . "\n";   } else {     echo "not able retrieve video status information yet. " .        "please try again later.\n"; } 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -