Jump to content

Muzu API


jduffell

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/261697-muzu-api/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.