Esempio n. 1
0
        public async Task <LyricsResponse> GetLyrics(string id)
        {
            var results = JsonConvert.DeserializeObject <LyricsResponse>(await NeteaseHttpHelper.GetAsync(string.Format(Endpoints.LyricsURL, id)).ConfigureAwait(false));

            return(results);
        }
Esempio n. 2
0
        public async Task <SearchResponse> SearchSongs(string query)
        {
            var results = JsonConvert.DeserializeObject <SearchResponse>(await NeteaseHttpHelper.PostAsync("http://music.163.com/api/search/get/", $"s={query}&type=1&limit=10&offset=0").ConfigureAwait(false));

            return(results);
        }