erunion / showtimes

[deprecated] a movie showtimes API
MIT License
52 stars 14 forks source link

.getTheater() #2

Closed erunion closed 8 years ago

erunion commented 10 years ago

Need to be able to pass in a movie theater ID, like 1441318e8d47fc1b for the Vogue Theatre, in and get back an array of movies and showtimes for the configured day.

var Showtimes = require('showtimes');
var s = new Showtimes(94118, {});
s.getTheater('1441318e8d47fc1b', function (movies) {
  /*[ { id: 'c30e28c6168184d9',
         name: 'Maleficent',
         runtime: '‎1hr 37min‎‎',
         rating: 'PG‎‎',
         genre: 'Action/Adventure‎',
         imdb: 'http://www.imdb.com/title/tt1587310/',
         trailer: 'http://www.youtube.com/watch?v=CelenfcEszk',
         showtimes: [ '‎2:45‎pm', '‎7:15pm‎'] },
       { id: 'd64ac30103cb0ea6',
         name: 'Maleficent 3D',
         runtime: '‎1hr 37min‎‎',
         rating: 'PG‎‎',
         genre: 'Action/Adventure‎',
         imdb: 'http://www.imdb.com/title/tt1587310/',
         trailer: 'http://www.youtube.com/watch?v=CelenfcEszk',
         showtimes: [ '‎5:00pm‎'] }]*/
});
chrux commented 8 years ago

Working on this :)