Hi Paul,
Sorry. I was changing the code back and forth with several ids to see if it was an id space related problem. Just now I found out I was using a maven dependency that referenced an old version of the library. I guess that was the problem.
I couldn't find the new version available in the maven repo, but I manually updated to the latest one and problem solved.
Thanks
PlaylistParams params = new PlaylistParams();
params.addIDSpace("id:spotify-WW");
params.addArtist("spice girls");
params.addArtist("green day");
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());
}
}