You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: