🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

resolve-anticaptcha-report-incorrect-captcha

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resolve-anticaptcha-report-incorrect-captcha

AntiCaptcha API SDK - Maksym Tymchyk - version to refund and report incorrect captchas

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Anti Captcha SDK

Version of NodeJS API SDK for Anti Captcha service. Original author: m-tymchyk


Install

# install by YARN
yarn add resolve-anticaptcha-report-incorrect-captcha

# or by NPM
npm install --save resolve-anticaptcha-report-incorrect-captcha

Usage

Image captcha to Text

import AntiCaptcha, { getImageData } from 'resolve-anticaptcha';

const antiCaptcha = new AntiCaptcha('<your API Key>');

const base64ImageData = getImageData('/path/to/image.jpg');
antiCaptcha
    .resolveImage(base64ImageData)
    .then((response) => {
        console.log(response);
    });

Response:

{
  "errorId": 0,
  "status": "ready",
  "solution": {
    "text": "rke3i",
    "url": "http://webaddress.com/captcha.jpg"
  },
  "cost": "0.000700",
  "ip": "46.98.54.221",
  "createTime": 1472205564,
  "endTime": 1472205570,
  "solveCount": "0"
}

Google reCAPTCHA

import AntiCaptcha from 'resolve-anticaptcha';

const antiCaptcha = new AntiCaptcha('<your API Key>');

antiCaptcha
    .resolveNoCaptcha(
        'https://my-website-url.com',               // Website URL with Google Recaptcha
        '6Lc_aCMTAAAAABx7u2N0D1XnVbI_v6ZdbM6rYf16'  // Google Recaptcha Key
    )
    .then((response) => {
        console.log(response);
    });

Response:

{
  "errorId": 0,
  "status": "ready",
  "solution": {
    "gRecaptchaResponse":"3AHJ_VuvYIBNBW5yyv0zRYJ75VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3"
  },
  "cost": "0.000700",
  "ip": "46.98.54.221",
  "createTime": 1472205564,
  "endTime": 1472205570,
  "solveCount": "0"
}

FAQs

Package last updated on 24 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts