Skip to content

Commit 4d1287d

Browse files
refactoring of example files
1 parent 5cfc403 commit 4d1287d

17 files changed

+35
-35
lines changed

examples/amazonWaf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const Captcha = require("../dist/index.js");
1+
const TwoCaptcha = require("../dist/index.js");
22
require('dotenv').config();
33
const APIKEY = process.env.APIKEY
4-
const solver = new Captcha.Solver(APIKEY);
4+
const solver = new TwoCaptcha.Solver(APIKEY);
55

66
//INFO: The `context` value is dynamic, it is necessary to take the actual value from the page each time.
77
solver.amazonWaf({

examples/boundingBox.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/capyPuzzle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const Captcha = require("../dist/index.js");
1+
const TwoCaptcha = require("../dist/index.js");
22
require('dotenv').config();
33
const APIKEY = process.env.APIKEY
4-
const solver = new Captcha.Solver(APIKEY);
4+
const solver = new TwoCaptcha.Solver(APIKEY);
55

66
solver.capyPuzzle({
77
pageurl: "https://www.capy.me/account/register/",

examples/coordinates.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
const fs = require('fs')
2-
const Captcha = require("../dist/index.js");
2+
const TwoCaptcha = require("../dist/index.js");
33
require('dotenv').config();
44
const APIKEY = process.env.APIKEY
5-
const solver = new Captcha.Solver(APIKEY);
5+
const solver = new TwoCaptcha.Solver(APIKEY);
66

77

88
const imageBase64 = fs.readFileSync("./media/hCaptchaImage.jpg", "base64")
99

1010
solver.coordinates({
1111
body: imageBase64,
1212
textinstructions: 'Select all photos containing the boat'
13-
})
13+
})
1414
.then((res) => {
1515
console.log(res);
1616
})

examples/cyberSiARA.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const Captcha = require("../dist/index.js");
1+
const TwoCaptcha = require("../dist/index.js");
22
require('dotenv').config();
33
const APIKEY = process.env.APIKEY
4-
const solver = new Captcha.Solver(APIKEY);
4+
const solver = new TwoCaptcha.Solver(APIKEY);
55

66
solver.cyberSiARA({
77
pageurl: "https://www.cybersiara.com/book-a-demo",

examples/dataDome.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
const Captcha = require("../dist/index.js");
1+
const TwoCaptcha = require("../dist/index.js");
22
require('dotenv').config();
33
const APIKEY = process.env.APIKEY
44
const proxy = process.env.proxy
55
const proxytype = process.env.proxytype
6-
const solver = new Captcha.Solver(APIKEY);
6+
const solver = new TwoCaptcha.Solver(APIKEY);
77

88
solver.dataDome({
99
pageurl: "https://rendezvousparis.hermes.com/client/register",

examples/friendlyCaptcha.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const Captcha = require("../dist/index.js");
1+
const TwoCaptcha = require("../dist/index.js");
22
require('dotenv').config();
33
const APIKEY = process.env.APIKEY
4-
const solver = new Captcha.Solver(APIKEY);
4+
const solver = new TwoCaptcha.Solver(APIKEY);
55

66
solver.friendlyCaptcha({
77
pageurl: "https://geizhals.de/?liftban=1&from=/455973138?fsean=5901747021356",

examples/funcaptcha.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const Captcha = require("../dist/index.js");
1+
const TwoCaptcha = require("../dist/index.js");
22
require('dotenv').config();
33
const APIKEY = process.env.APIKEY
4-
const solver = new Captcha.Solver(APIKEY);
4+
const solver = new TwoCaptcha.Solver(APIKEY);
55

66
solver.funCaptcha({
77
pageurl: "https://api.funcaptcha.com/fc/api/nojs/?pkey=69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC",

examples/geetest.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const fetch = require('node-fetch');
2-
const Captcha = require("../dist/index.js");
2+
const TwoCaptcha = require("../dist/index.js");
33
require('dotenv').config();
44
const APIKEY = process.env.APIKEY
5-
const solver = new Captcha.Solver(APIKEY);
5+
const solver = new TwoCaptcha.Solver(APIKEY);
66

77
;(async () => {
88
/**

examples/geetestV4.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const Captcha = require("../dist/index.js");
1+
const TwoCaptcha = require("../dist/index.js");
22
require('dotenv').config();
33
const APIKEY = process.env.APIKEY
4-
const solver = new Captcha.Solver(APIKEY);
4+
const solver = new TwoCaptcha.Solver(APIKEY);
55

66
solver.geetestV4({
77
pageurl: 'https://2captcha.com/demo/geetest-v4',

0 commit comments

Comments
 (0)