1.0.8 • Published 7 years ago

t411 v1.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

t411

T411 API client

A client for the T411 API that works both in node and the browser with browserify.

Install

$ npm install t411

Usage

var T411 = require('t411');

var client = new T411();

client.auth('your-username', 'your-password', function(err) {
  if(err) throw err;

  // search torrents
  client.search('interstellar', function(err, result) {
    if(err) throw err;
    console.log(result);
  });

  // download and parse a .torrent
  client.download(id, function(err, buf) {
    // `buf` is a Buffer in node as well as in the browser
    var parsed = require('parse-torrent')(buf);
    console.log(parsed);
  });

  // All the methods provided by the API are implemented (categories,
  // terms, tops, bookmarks). For advanced use check the source code, 
  // it should be pretty easy to read :)
});
1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

9 years ago