Skip to content
Node.JS client for the BTN API
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.project
LICENSE
README.md
package.json

README.md

btn-api

Install

npm install btn-api

How to use

require it

var Btn = require('btn-api')

init it

The first argument should be your API key

var btn = new Btn('your-magic-key')

Usage

Easy search

btn.search().limit(1).container('mp4').resolution('sd').run(console.log)

Options for using search

['id', 'series', 'name', 'search', 'codec', 'container', 'source', 'resolution', 'origin', 'limit']

Snatch list first argument is how many to return

btn.getUserSnatchlist(50, console.log)

Userinfo

btn.userInfo(console.log)

Inbox

btn.getInbox(console.log)

Docs

http://btnapps.net/apigen/class-btnapi.html

Something went wrong with that request. Please try again.