public spotifyCurrentlyPlaying GetCurrentlyPlaying() { List <string> scopes = new List <string> { Scopes.UserReadCurrentlyPlaying }; string CurrentlyPlayingEndpoint = "https://api.spotify.com/v1/me/player/currently-playing"; spotifyCurrentlyPlaying track = GetData <spotifyCurrentlyPlaying>(CurrentlyPlayingEndpoint, scopes); return(track); }
static void Main(string[] args) { SpotifyFunctions s = new SpotifyFunctions(); Console.WriteLine(s.GetUserProfile().birthdate); s.Play(); spotifyCurrentlyPlaying current = s.GetCurrentlyPlaying(); Console.WriteLine(current.item.name); }