Ejemplo n.º 1
0
        private static void FindingMovieByName()
        {
            string apiKey = ConfigurationManager.AppSettings["ApiKey"];

            //A Tomato is the main object that will allow you to access RottenTomatoes information.
            //Be sure to provide it with your API key in String format.
            var tomato = new Tomato(apiKey);

            var results = tomato.FindMovieByQuery("The Incredible Hulk");

            foreach (var movieSearchResult in results)
            {
                Console.WriteLine(movieSearchResult.Title);
            }
        }
Ejemplo n.º 2
0
        private static void FindingMovieByName()
        {
            string apiKey = ConfigurationManager.AppSettings["ApiKey"];

            //A Tomato is the main object that will allow you to access RottenTomatoes information.
            //Be sure to provide it with your API key in String format.
            var tomato = new Tomato(apiKey);

            var results = tomato.FindMovieByQuery("The Incredible Hulk");
            foreach (var movieSearchResult in results)
            {
                Console.WriteLine(movieSearchResult.Title);
            }
        }