Socket
Book a DemoInstallSign in
Socket

antigate2

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antigate2

Antigate client

0.1.1
latest
Source
npmnpm
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

antigate2

Antigate client

NPM version Build Status Dependency Status Coverage percentage experimental

Install

npm install antigate2 --save

Usage

import { Antigate } from "antigate2";

const antigate = new Antigate({ key : "KEY" });

async function getByImage(){
    const text = await antigate.getByBase64("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ....");
    console.log(text);
}
async function getNoCaptcha(){
    const solution = await antigate.getNoCaptcha("http://http.myjino.ru/recaptcha/test-get.php", "6Lc_aCMTAAAAABx7u2W0WPXnVbI_v6ZdbM6rYf16");
    console.log(solution.gRecaptchaResponse);
}
getByImage();
getNoCaptcha();

API

public async getByBase64(data: string): Promise<string>
public async getNoCaptcha(websiteURL: string, websiteKey: string) : INoCaptchaSolution;

export interface INoCaptchaSolution {
    gRecaptchaResponse: string; // Хеш который необходимо подставить в форму с рекапчей в <textarea id="g-recaptcha-response" ..></textarea> . Имеет длину от 500 до 2190 байт.
    gRecaptchaResponseMD5: string; // Контрольная сумма gRecaptchaResponse в MD5. Передается только если добавить параметр isExtended со    значением true в методе getTaskResult. Сделано исключительно для отладки, чтобы разработчик мог убедиться что получает хэш целиком.
}

Test

npm install
npm test

FAQs

Package last updated on 23 Apr 2017

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.