Skip to content

Commit 0338498

Browse files
add hcaptcha example
1 parent 0defebc commit 0338498

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

examples/hcaptcha.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
require('dotenv').config({ path: '../.env' });
2+
const { Solver } = require('../dist/index.js');
3+
4+
const APIKEY = process.env.SOLVECAPTCHA_APIKEY;
5+
const solver = new Solver(APIKEY);
6+
7+
solver.hcaptcha({
8+
pageurl: 'https://portalunico.siscomex.gov.br',
9+
sitekey: 'bf8ccfbf-6a05-45f6-982a-7a7964c2f50c',
10+
invisible: 0,
11+
domain: 'hcaptcha.com',
12+
// proxy: {
13+
// type: 'HTTPS',
14+
// uri: 'login:password@IP_address:PORT'
15+
// }
16+
})
17+
.then((res) => {
18+
console.log(res);
19+
})
20+
.catch((err) => {
21+
console.log(err);
22+
});

0 commit comments

Comments
 (0)