##
## ------------------------------------------------------------------------ ##
###############################################################################
?>
laut.fm API PHP example
artist->image ) {
echo '';
echo "
";
}
// Stationsinfos anzeigen:
echo 'Stationsname: ' . $obj_station->name . "
";
echo "Description: " . $obj_station->description . "
";
// Aktuellen Song anzeigen:
echo "Current Song: " . $obj_song->artist->name . " - " . $obj_song->title . "
";
// Aktuelle Playlist anzeigen:
if ($obj_station->current_playlist) {
echo "Current Playlist: " . $obj_station->current_playlist->name ."
";
} else {
echo "Current Playlist: Basisplayliste";
}
?>