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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.