Socket
Socket
Sign inDemoInstall

azcaptcha

Package Overview
Dependencies
4
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    azcaptcha

A modern js wrapper for the AZcaptcha API.


Version published
Weekly downloads
1
decreased by-83.33%
Maintainers
1
Install size
1.35 MB
Created
Weekly downloads
 

Readme

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

FAQs

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