Package Exports
- recaptcha_enterprise
- recaptcha_enterprise/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (recaptcha_enterprise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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'