/rotten_tomatoes_api

Simple Wrapper for the Rotten-Tomatoes-Api to search for movies

Primary LanguageRuby

Rotten Tomatoes API

A simple, experimental wrapper around the Rotten Tomatoes API, that allows you to search for movies (http://developer.rottentomatoes.com/). Uses Httparty for accessing the json-api for Rotten Tomatoes.

Setup

Add your API-Key to your enviroment using

export ROTTEN_TOMATOES_API_KEY=["<YOUR API KEY>"]

Then add

gem "rotten_tomatoes_api"

to your gemfile.

Example

movie_list = RottenTomatoesApi::MovieList.search("breathless")

movie_list.movies.each do |movie|
    puts movie.title
    puts movie.posters.original
end