Skip to content

Instantly share code, notes, and snippets.

@ZachOrr
Created October 28, 2011 02:04
Show Gist options
  • Select an option

  • Save ZachOrr/1321456 to your computer and use it in GitHub Desktop.

Select an option

Save ZachOrr/1321456 to your computer and use it in GitHub Desktop.
Load Spotify Playlists
sp_playlistcontainer *pc = sp_session_playlistcontainer(session);
for(int i = 0; i < sp_playlistcontainer_num_playlists(pc); i++){
sp_playlist *pl = sp_playlistcontainer_playlist(pc, i);
const char *name;
name = sp_playlist_name(pl);
NSLog(@"Name of playlist %d = %s\n", i, name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment