parsing - Parse youtube feed output -
hello having problem retrieving value link. far i've been using line of code.
$str = "https://gdata.youtube.com/feeds/api/videos/vdbubcocu_a"; $blow =(explode("'",$str)); print_r($blow);
and echoes out "array" appreciate how retrieve value link. thanks.
if correct, using php?
suggest use google php client library @ https://developers.google.com/youtube/2.0/developers_guide_php
for case, see https://developers.google.com/youtube/2.0/developers_guide_php#video_entry_contents
$videoentry = $yt->getvideoentry('vdbubcocu_a'); printvideoentry($videoentry); function printvideoentry($videoentry) { echo 'video: ' . $videoentry->getvideotitle() . "\n"; echo 'video id: ' . $videoentry->getvideoid() . "\n"; echo 'updated: ' . $videoentry->getupdated() . "\n"; }
Comments
Post a Comment