Skip to content

ssbb/node-antigate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-antigate

NPM

antigate.com API client for node.js

Module homepage at github.com

How to install

$ npm install antigate

How to use

var Antigate = require('antigate');


var ag = new Antigate('YOUR_ANTIGATE_KEY_HERE');


// Recognize the captcha by URL
ag.processFromURL('CAPTCHA_URL', function(error, text, id) {
  if (error) {
    throw error;
  } else {
    console.log(text);
  }
});

// Recognize the captcha from file
ag.processFromFile('CAPTCHA_FILE_PATH', function(error, text, id) {
  if (error) {
    throw error;
  } else {
    console.log(text);
  }
});

// Recognize the captcha from file(better for google captcha)
ag.processFromFileWithComment('CAPTCHA_FILE_PATH', 'comment', function(error, text, id) {
  if (error) {
    throw error;
  } else {
    console.log(text);
  }
});


// Recognize the captcha from base64 string
ag.process('BASE_64_STRING', function(error, text, id) {
  if (error) {
    throw error;
  } else {
    console.log(text);
  }
});

// Report bad captcha
ag.report('CAPTCHA_ID_HERE');

// Get you blanace
ag.getBalance(function(error, balance) {
  if (error) {
    throw error;
  } else {
    console.log(balance);
  }
}

About

antigate.com API client for node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages