jduffell Posted April 27, 2012 Share Posted April 27, 2012 I'm not sure if anyones had any experience with the following API before but I'm having a bit of a nightmare, I have the code to display the item thumbnails. but as I'm specifying the path as the media:thumbnail I can't seem to figure out how to retrace my steps so to speak and also echo the title along with the video player embed coded. http://www.muzu.tv/api/channelLookupDoc/ The code I have is as follows, but if anyone could help explain how i could pull other elements out it would be greatly appreciated. <?php $entries = simplexml_load_file('http://www.muzu.tv/api/channel/details?vname=[username]&muzuid=[key]'); $data = $entries->xpath ('channel/item/media:thumbnail[3]'); foreach ($data as $item) { echo '<a href="" class="video">'; echo '<img src="'.$item['url'].'" />'; echo '<span>'.$item['url'].'</span>'; echo '</a>'; } ?> I've replaced my keys, but everything else is as is at the moment Cheers, JD Quote Link to comment https://forums.phpfreaks.com/topic/261697-muzu-api/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.