1.0.0 • Published 7 years ago

iab.taxonome v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

iab.taxonome

Simple client for iab taxonomy classifier API (iab.taxonome.org)

Installation

$ npm install -S iab.taxonome

Usage

var tax = require("iab.taxonome");

var params = {
    token : PRIVATE_TOKEN,
    api_ver: 1,
    iab_ver: 1,
    
};
var classifer = new tax.classifier(params);

var text ="Set your text here";
var classification_id = 123;
classifer.classify(text,classification_id,function(err,res){
    if (!err){
        console.log(res);
    }
});

Params

token

Type: string

Private token provided by https://iab.taxonome.org

api_ver

Type: number

API version.

iab_ver

Type: number
Default: 1

IAB taxonomy version.