Node.js wrapper arround the uTorrent Web API.
Here is the basic usage of this module. You can find an advanded list of methods supported by uTorrent Web UI API on their website.
First you need to instanciate a new client object, and then set the credentials used to connect to the uTorrent Web UI.
Then you can do your calls to the API.
Here are the available methods :
Set the credentials used to access the uTorrent Web UI.
Fetch the token which will be used in each subsequent API calls. This method is directly called before an API call if needed, you don't need to call it by yourself.
Return an error to the callback, if an error occured when accessing the uTorrent API.
Call the specified API action. If the action do not require params (like 'list'), this argument can be ignored.
If you want to use the 'add-file' method, just specify a 'torrent_file' param with a buffer containing the torrent file to upload to the API.
Return an error to the callback (if one appeared) and an object containing the result sent back by the API.
var Client = ;var utorrent = 'localhost' '22222';utorrent;utorrent;
var request = ;var Client = ;var fs = ;var utorrent = 'localhost' '22222';utorrent;;
var Client = ;var fs = ;var utorrent = 'localhost' '22222';utorrent;utorrent;