资 源 简 介
A very simple and small library that allows .NET developers to get track information, (un)pause spotify, play tracks, get cover art and more!
Example
```
SpotifyAPI API = new SpotifyAPI(SpotifyAPI.GetOAuth(), "jariz-example.spotilocal.com");
Responses.CFID cfid = API.CFID;
Responses.Status Current_Status = API.Status;
if (Current_Status.track != null)
Console.WriteLine(string.Format("You"re listening to {0} - {1} from the album "{2}"",
CurrentStatus.track.trackresource.name,
CurrentStatus.track.artistresource.name,
CurrentStatus.track.albumresource.name));
else
Console.WriteLine("You"re not listening to any songs");
Thread.Sleep(1000);
//Pause playback
Current_Status = API.Pause;
Thread.Sleep(1000);
//Resume playback
Current_Status = API.Resume;
Thread.Sleep(1000);
//Play "Evil Boy"
API.URI = "spotify:track:3wcekXbEsDFv9OfyJe1q5d";
Current_Status = API.Play;