Socket
Socket
Sign inDemoInstall

resolve-anticaptcha-report-incorrect-captcha

Package Overview
Dependencies
8
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
488 kB
Created
Weekly downloads
 

Readme

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

Last updated on 24 Sep 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc