Exemplo n.º 1
0
        public static async Task <List <SearchListItem> > GetArtists(string query)
        {
            string          url      = string.Format(Constants.URLs.SearchArtists, TextTools.GetSearchQuery(query));
            HttpWebRequest  request  = HttpWebRequest.Create(url) as HttpWebRequest;
            HttpWebResponse response = await request.GetResponseAsync() as HttpWebResponse;

            return(SearchResponse.GetArtists(response));
        }