Пример #1
0
        public async Task <string> CreateSpotifyPlaylist(string songkickUsername, string spotifyAccessToken)
        {
            var artists = await _songkickService.GetArtistsForUserAsync(songkickUsername);

            var playlist = await _spotifyService.CreatePlaylistFromArtists(
                artists,
                $"{songkickUsername}'s Songkick Playlist ({DateTime.Now.ToShortDateString()})",
                spotifyAccessToken);

            return(playlist.Id);
        }