0.1.1 • Published 10 years ago

couchpotato v0.1.1

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

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);
  });
});
0.1.1

10 years ago

0.1.0

10 years ago