Nonsense Parser Microframework
Wondering what’s next for npm?Check out our public roadmap! »

eztvapi.re

0.1.1 • Public • Published

eztvapi.re API wrapper

Build pass Dependencies

This is a JavaScript wrapper for eztvapi.re that returns promises.

Calls to the classes methods return promises.

The parameters for the methods are the mandatory fields. Where optional fields may be passed this may be done via options object. For optional parameters please refer to the eztvapi.re API. JSON is returned directly as the API returns it.

Installation

npm install eztvapi.re --save

Usage example

var EZTV = require('eztvapi.re');
var eztv = new EZTV();
 
eztv.getShows('1', {keywords: 'Breaking Bad'}).then( function(shows) {
  console.log(shows);
});

Available methods

The EZTV class provides the following methods:

Default API Methods

  • getPages()
  • getShows(page, options = {})
  • getDetails(id)

Custom API Methods

These methods are in place to have some more comfort working with the API.

  • search(keywords, page = 1, options = {})

Testing

An extensive test suite is provided and may be invoked by running:

npm run test

Install

npm i eztvapi.re

DownloadsWeekly Downloads

1

Version

0.1.1

License

ISC

Last publish

Collaborators

  • avatar