1.0.1 • Published 11 months ago

recaptcha_enterprise v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

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'
1.0.1

11 months ago

1.0.0

11 months ago