CherryTomato makes using information provided by RottenTomatoes.com very simple. It's aim is to allow developers to quickly and safely create powerful applications with the JSON api provided for free by RottenTomatoes.
Full C# POCO objects allow you to concentrate on creating a great application and not parsing random JSON from a source.
Standing on the Shoulders of Giants
CherryTomato is proudly powered by the phenomenal library JSON.Net provided for free by James Newton.
http://james.newtonk...s/json-net.aspx
Introduction to CherryTomato
string apiKey = ConfigurationManager.AppSettings["ApiKey"];
var tomatoe = new Tomatoe(apiKey);
//Numerical ID in this case is 9818.
var movie = tomatoe.FindMovieById(9818);
Console.WriteLine(movie.Name);
Console.WriteLine(movie.Year);
foreach (var rating in movie.Ratings)
{
Console.WriteLine("{0} Rating: {1}", rating.Type, rating.Score);
}
Console.ReadKey();
Please report any bugs you may find. If you report it, I'll fix it and we can all benefit from a better library.
This post has been edited by Sergio Tapia: 18 April 2011 - 12:56 PM

New Topic/Question
Reply


MultiQuote








|