Closed NotGoodCoding closed 1 year ago
@NotGoodCoding hi.
Yes, you can send rqdata
using the data
parameter.
Note that when sending rqdata
, you must also send the invisible
and userAgent
parameters.
Here is an example of how to send hCaptcha in your case:
const solver = new Captcha.Solver(APIKEY);
solver.hcaptcha({
pageurl: "https://2captcha.com/demo/hcaptcha?difficulty=moderate",
sitekey: "b76cd927-d266-4cfb-a328-3b03ae07ded6",
invisible: 1,
data: "the_rqdata_value_you_found",
userAgent: "User-Agent_that_you_use_when_interacting_with_the_site"
})
.then((res) => {
console.log(res);
})
.catch((err) => {
console.log(err);
})
Please check if this solution worked for you and let me know if there are any problems.
@NotGoodCoding Hello again. Today I released v1.3.1 in which I updated the JSDOC documentation for methods. Added the missing parameters for methods, including information about the rqdata
and useragent
parameters for method hcaptcha
.
Screenshot:
@NotGoodCoding Hello again. Today I released v1.3.1 in which I updated the JSDOC documentation for methods. Added the missing parameters for methods, including information about the
rqdata
anduseragent
parameters for methodhcaptcha
.
Thanks a lot!!!
@NotGoodCoding you're welcome.
Hi, did you implement rqdata + useragent parameters? If so, how would I construct the request on include this?
Thanks.