private static string GetWeek(string buildId) { var url = $"https://top10.netflix.com/_next/data/{buildId}/united-states.json"; var getParams = HttpRequester.GetAsync <NetflixMovieDto>(new Uri(url)).Result; return(getParams?.PageProps?.PathParams?.Week); }
private static async Task <string[]> GetMoviesNamesAsync(string url) { var topMovies = await HttpRequester.GetAsync <NetflixMovieDto>(new Uri(url)); return(topMovies.PageProps.Data.WeeklyTopTen.Select(m => m.Name).ToArray()); }