-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
I have a dynamic playlist session where I need to get the next song and get the spotify ID for this song. Right now I do the following:
Playlist playlist = session.next(); //request 1
for (Song song : playlist.getSongs())
{
Track track = song.getTrack("spotify-WW"); //request 2
String spotifyID = track.getForeignID(); // request 3
}
This results in 3 api calls. Is there anyway to get the spotify ID at the same time as getting the next song such that it is only 1 api call? If not, then shouldn't track.getForeignID() NOT result in a third request since the foreign id is included in the raw json response?
Metadata
Metadata
Assignees
Labels
No labels