myshows
v0.0.2
Published
NodeJS wrapper for the MyShows.me API
Downloads
9
Maintainers
Readme
JavaScript MyShows.me API for Node.JS
Module provides a wrapper for the MyShows.me API
Installation
Install with the Node.JS package manager:
$ npm install myshows
Create new MyShows instance:
var MyShows = require('myshows');
var myshows = new MyShows({
login: 'username',
password: 'password'
});
Shows
myshows.show.searchShows
myshows.show.searchShows('big bang', function (error, result) {
// Returns array
});
myshows.show.searchEpisodeByFileName
myshows.show.searchEpisodeByFileName('Star.Wars.The.Clone.Wars.s02e01e02.rus.LostFilm.TV.avi', function (error, result) {
// Returns object
});
myshows.show.getShow
myshows.show.getShow(1, function (error, result) {
// Returns object
});
myshows.show.getEpisode
myshows.show.getEpisode(1, function (error, result) {
// Returns object
});
myshows.show.getGenres
myshows.show.getGenres(function (error, result) {
// Returns array
});