Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

fandango API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .irbrc
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 fandango.gemspec
README.md

Fandango API Build Status

Fetch theaters near postal code and movies on sale at each.

Uses Fandango's RSS moviesnearme feed. E.g. http://www.fandango.com/rss/moviesnearme_10023.rss

Usage

Fandango.movies_near(73142) returns an array of hashes. Each hash has 2 items: theater info and movies on sale at that theater. A theater is a hash of data containing: name, Fandango's theater id, address, and postal code. The movies are an array of hashes. Each hash contains title and Fandango's id.

Example output format

[
    [ 0] {
        :theater => {
                   :name => "AMC",
                     :id => "abcde",
                :address => "123 Baker St., New York, NY 10001",
            :postal_code => "10001"
        },
         :movies => [
            [0] {
                :title => "Sherlock Holmes",
                   :id => "123456"
            },
            # more movies...
        ]
    },
    # more hashes...
]
Something went wrong with that request. Please try again.