UTorrent.createClient()

Create a client instance for uTorrent API

Usage

Hover over inputs/exits for more info.

var UTorrent = require('machinepack-utorrent');


// Create a client instance for uTorrent API

UTorrent.createClient({

host: 'localhost',

port: 26085,

username: 'admin',

password: '12345',

}).execSync();

Inputs

host required

'localhost'
port required

26085
username required

'admin'
password required

'12345'

Exits

error

An unexpected error occurred.

success

OK.

{ rootUrl: 'http://localhost:26085/gui',
  username: 'admin',
  password: '12345',
  token: '',
  cookies: {},
  setCredentials: '->',
  fetchToken: '->',
  call: '->',
  makeCall: '->',
  makeRequest: '->' }