"list",
"parameters" => array(
"limit" => 10
)
);
// Get the songs back form the service
$top10 = KVService::querySong($top10Query);
header("Content-Type: text/html; charset=UTF-8");
// Display the top
echo '
Top 10 Songs
';
echo "";
foreach ($top10->songs as $song) {
// Get the artist of the song
$queryArtist = array(
"function" => "get",
"parameters" => array("id" => $song->artistId)
);
$artist = KVService::queryArtist($queryArtist)->artist;
echo '-
' . $artist->name . ' - ' . $song->name . ' | Preview
';
}
echo "
";