utorrent-api
Version:
Interact with the uTorrent Web API
11 lines (8 loc) • 360 B
JavaScript
var Client = require('../lib/utorrent');
var fs = require('fs');
var utorrent = new Client('localhost', '22222');
utorrent.setCredentials('admin', '123456');
utorrent.call('getprops', {'hash': 'DAAC7008E2E3A6E4321950C131690ACA20C5A08A'}, function(err, data) {
if(err) { console.log('error : '); console.log(err); return; }
console.log(data);
});