dzmitry-duboyski / 2captcha-ts

JavaScript package for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, funcaptcha, geetest and solve any other captchas.
https://www.npmjs.com/package/2captcha-ts
MIT License
17 stars 3 forks source link

reCaptcha enterprise #11

Closed TheGP closed 7 months ago

TheGP commented 7 months ago

Does the lib support passing enterprise: 1? And what does it do with parameters it doesn't know? Does it send it too or remove it from the request?

dzmitry-duboyski commented 7 months ago

@TheGP Yes, supports enterprise: 1:

solver.recaptcha({
    pageurl: 'https://2captcha.com/ru/demo/recaptcha-v2-enterprise',
    googlekey: '6Lf26sUnAAAAAIKLuWNYgRsFUfmI-3Lex3xT5N-s',
    enterprise: 1
})
.then((res) => {
    console.log(res);
})

Unknown parameters should also be sent to the API.