Example #1
0
        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);
        }
Example #2
0
        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);
        }