1.1.1 • Published 6 years ago

popcorn-api v1.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

npm David Build Status GitHub license

NPM

Popcorn API Version Badge

Easy way to get data from the Popcorn Time API

Documentation is available at https://popcorn-api.js.org/

Installation

Via NPM:

$ npm install popcorn-api

Usage

Popcorn-API comes with 3 routes you can use: anime, shows and movies. To access a route, you use it as a property of PopCorn: PopCorn.[route].

Examples

const PopCorn = require('popcorn-api');

// * Search for Animes using query 'kill'
PopCorn.animes.search({query: 'kill'})
    .then(async ([anime]) => {
        await anime.fetch();

        console.log(anime); // -> Anime
    });

// * Search for TV Shows using query 'flash'
PopCorn.shows.search({query: 'flash'})
    .then(([show]) => show.fetch())
    .then(console.log); // -> Show

Find more examples in Examples

1.1.1

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago