cinepass-api

0.0.5 • Public • Published

Cinepass API

Node library around the Cinepass movies and cinemas API (https://api.cinepass.de). You need an API key to use this library.

Usage

Cinepass.init receives the API key. You will need to call this method (once) before calling any other method.

Cinepass.getMovies receives an options object and a callback. It will call the callback passing the list of the movies queried using the passed options (you can pass any options from the movies method: https://api.cinepass.de/documentation/v4/#movies_get).

Cinepass.getCinemas receives an options object and a callback. It will call the callback passing the list of the cinemas queried using the passed options (you can pass any options from the cinemas method: https://api.cinepass.de/documentation/v4/#cinemas_get).

Cinepass.getShowTimes receives an options object and a callback. It will call the callback passing the list of the showtimes queried using the passed options (you can pass any options from the showtimes method: https://api.cinepass.de/documentation/v4/#showtimes_get).

Cinepass.getDetailedShowTimes receives an options object and a callback. It will call the callback passing the list of the showtimes queried using the passed options (you can pass any options from the showtimes method: https://api.cinepass.de/documentation/v4/#showtimes_get). It will also include details of the movie and the cinema for each showtime.

var CinepassAPI = require('cinepass-api')
 
CinepassAPI.init('<YOUR_API_KEY>');
 
CinepassAPI.getMovies({ city_ids: '3526' }, function(movies){
  //Add your code here
});
 
CinepassAPI.getShowTimes({ location: '34.0386656,-118.4221519' }, function(showtimes){
  //Add your code here
});

/cinepass-api/

    Package Sidebar

    Install

    npm i cinepass-api

    Weekly Downloads

    2

    Version

    0.0.5

    License

    ISC

    Last publish

    Collaborators

    • emilioicai