* @author plamere
*/
public class RosettaPlaylistExample {
public static void main(String[] args) throws EchoNestException {
EchoNestAPI en = new EchoNestAPI();
PlaylistParams params = new PlaylistParams();
params.addIDSpace("spotify-WW");
params.setType(PlaylistParams.PlaylistType.GENRE_RADIO);
params.addGenre("dance pop");
params.includeTracks();
params.setLimit(true);
Playlist playlist = en.createStaticPlaylist(params);
for (Song song : playlist.getSongs()) {
Track track = song.getTrack("spotify-WW");
System.out.println(track.getForeignID() + " " + song.getTitle() + " by " + song.getArtistName());
}