i want to get lyrics using web api but it has an error of 'System.Net.Http.HttpClient' does not contain a definition for 'DownloadData' and no extension method 'DownloadData' accepting a first argument of type 'System.Net.Http.HttpClient' could be found (are you missing a using directive or an assembly reference?)
here my code
internal static class LyricsFetcher
{
internal static String GetLyrics(String Artist, String Title)
{
byte[] responseData;
string URL;
URL = "http://api.metrolyrics.com/v1/search/lyrics/?find=" + Artist + "%20" + Title + "&X-API-KEY=1234567890123456789012345678901234567890";
HttpClient wClient = new HttpClient();
responseData = wClient.DownloadData(URL); // error
UTF8Encoding utf8 = new UTF8Encoding();
String Lyrics = utf8.GetString(responseData,0,responseData.Length);
return Lyrics;
}
}