Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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());
        }