I am using Spotify iOS SDK. My goal is to pull existing Spotify playlists (not the user’s) and display the playlist contents to the user. I have playlist IDs. Is it doable via iOS SDK? if yes, can anyone provide me with a code sample?
Update: so far I am doing the following:
appRemote?.contentAPI?.fetchContentItem(forURI: "spotify:playlist:PLAYLIST_ID", callback: { item, error in })
Where appRemote is SPTAppRemote, item returned from Spotify is SPTAppRemoteContentItem.
The SPTAppRemoteContentItem item I am getting has the following values:
- isContainer: false
- children: nil
So with this, how can I get the playlist tracks? Am I on the right path?