public Playlists GetPlaylists(string userId) { string url = string.Format("https://api.spotify.com/v1/users/{0}/playlists?", userId); Playlists playlists = _spotifyApi.GetSpotifyType <Playlists>(url); return(playlists); }
public List <string> GetPlaylistsName(string userId) { Playlists playLists = GetPlaylists(userId); List <string> playlistNames = new List <string>(); foreach (var playlist in playLists.Items) { playlistNames.Add(playlist.Name); } return(playlistNames); }