public static Response GetSimilarbyID(string name) { using (var wc = new WebClient() ) { string url = "http://developer.echonest.com/api/v4/artist/similar?id=" + name; string data = wc.DownloadString(TENWSDev.Build(url)); return(Deserializer <RootObject> .Deserialize(data).response); } }
public static Response GetbyArtistName(string name) { using (var wc = new WebClient() ) { string url = "http://developer.echonest.com/api/v4/playlist/static?sort=song_hotttnesss-desc&artist=" + name; string data = wc.DownloadString(TENWSDev.Build(url)); return(Deserializer <RootObject> .Deserialize(data).response); } }