Exemple #1
0
 public Playlists(SpotSharp.SpotSharp spotify)
 {
     Get["/playlists"] = x =>
     {
         var playlists = spotify.GetAllPlaylists();
         var response = (Response)JsonConvert.SerializeObject(playlists, new LinkJsonConverter());
         response.ContentType = "application/json";
         return response;
     };
 }