recaptcha_enterprise

1.0.1 • Public • Published

Install Module : npm install moduleName Make import : const RecaptchaEnterprise = require('moduleName') Create an instance :

const Enterprise = new RecaptchaEnterprise({ apiKey: '46fbbc223c21111194b51573da75960', method: 'userrecaptcha', enterprise: 1, siteKey: '6Ldg5kQlAAAAABssf_t11111Bruys7MCX9eyaD', pageUrl: 'https://google.com/', action: 'verify', score: '0.9' });

    Where : apikey - your api key from 2capctha, rucaptcha solving service
    sitekey - can find in requests or source of webpage
    pageurl - link where captcha is located
    action - see more on 2capctha, rucaptcha documentation page
    score - see more on 2capctha, rucaptcha documentation page

Call solving function :

const resultCaptcha = await Enterprise.Register()

If captcha successfuly solved resultCaptcha will be an object, or you will recieve error and this error will log too.

const taskId = resultCaptcha.TaskId || 'not solved'
const captchaToken = resultCaptcha.capthaRes || 'not solved'

Package Sidebar

Install

npm i recaptcha_enterprise

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

5.3 kB

Total Files

3

Last publish

Collaborators

  • fenommen