Coder Social home page Coder Social logo

node-antigate's Introduction

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);
  }
}

node-antigate's People

Contributors

steal9pro avatar ssbb avatar

Stargazers

windivi avatar  avatar trashman avatar Dmytro Karpovych avatar

Watchers

James Cloos avatar  avatar  avatar

node-antigate's Issues

API doesn't work

I remember it worked properly in 2017-2018. Today I've run the app that uses this API and got an error:

image

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.