首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > spotify-local-api

spotify-local-api

  • 资源大小:294.79 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

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;

文 件 列 表

Newtonsoft.Json.dll
SpotifyLocalAPI.dll
Example.exe
VIP VIP
0.181422s