Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

PatrickE94/node-couchpotato

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-couchpotato

Small node module used to query the CouchPotatoServer v2 API. For further details on supported API calls, please check your CouchPotato installation at http://{url}:{port}/docs

Usage Examples

Instantiate with login credentials

var CouchPotato= require('couchpotato');

var cp= new CouchPotato({url} // IP/url without http
  , {port}
  , {username}
  , {password});

Instantiate without login credentials

var CouchPotato= require('couchpotato');

var cp= new CouchPotato({url} // IP/url without http
  , {port});

Query API

To get the list of movies with status done execute like:

cp.getKey(function(res) {
  console.log('result', res);
  cp.query('movie.list', {
      status: 'done'
    , limit_offset: 10
  }, function(res, body) {
    console.log('result', res, 'body', body);
  });
});

About

Small node module used to query the Couchpotato v2 API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published