You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

azcaptcha

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azcaptcha

A modern js wrapper for the AZcaptcha API.

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
3
-25%
Maintainers
1
Weekly downloads
 
Created
Source

azcaptcha 🤖

A simple & modern javascript wrapper for https://azcaptcha.com/ captcha solving API.

Currently only supporting reCaptcha v3.

Install

$ npm install azcaptcha

Usage

const azcaptcha = require('azcaptcha');

(async () => {
  const captcha = new AzCaptcha('<API_KEY>')
  try {
    if (await captcha.isBalanceGreaterThan(2)) {
      const taskId = await captcha.createTask('<SITE_KEY>', '<PAGE_URL>')
      console.log(taskId);
      //=> '402049'
    }
  } catch (err) {
    console.log(err);
    //=> 'INVALID SITE KEY etc ...'
  }
})();

Methods

createTask - create captcha solving request

createTask('<SITE_KEY>', '<PAGE_URL>')

getTaskResult - get captcha task result

getTaskResult('<TASK_ID>')

pollTaskResult - poll captcha task result

pollTaskResult('<TASK_ID>', '<DELAY>', '<ATTEMPTS>')

getBalance - get account balance

getBalance()

isBalanceGreaterThan - check account balance

isBalanceGreaterThan(10)

Keywords

azcaptcha

FAQs

Package last updated on 12 Jun 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