AzuraCast - JSON

Song History

For Wordpress Integration with the JSON Content Importer Plugin:

[jsoncontentimporter url="http://your-stream-url/api/nowplaying/1.json"]
{subloop-array:song_history:-1}
{subloop:song_history.song:-1}
<div>{song_history.song.text}</div>
{/subloop:song_history.song}
{/subloop-array:song_history}
[/jsoncontentimporter]

Now playing

<?php
$json = file_get_contents('http://stream-url/api/nowplaying/1');
$obj = json_decode($json, true);
$nowplaying = $obj["now_playing"]["song"]["artist"] . " - " . $obj["now_playing"]["song"]["title"];
echo $nowplaying;
?>
Navigation

Alternative Startseite
Helpdesk
Links
Maps
Radio
Suchmaschine


Drucken/exportieren