forked from dzmitry-duboyski/2captcha-ts
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtemu.js
More file actions
22 lines (21 loc) · 699 Bytes
/
temu.js
File metadata and controls
22 lines (21 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const TwoCaptcha = require("../dist/index.js");
require('dotenv').config();
const APIKEY = process.env.APIKEY
const solver = new TwoCaptcha.Solver(APIKEY);
const fs = require('fs')
const bodyBase64 = fs.readFileSync("./examples/media/temu_main.png", "base64")
const part1Base64 = fs.readFileSync("./examples/media/temu_part1.png", "base64")
const part2Base64 = fs.readFileSync("./examples/media/temu_part2.png", "base64")
const part3Base64 = fs.readFileSync("./examples/media/temu_part3.png", "base64")
solver.temu({
body: bodyBase64,
part1: part1Base64,
part2: part2Base64,
part3: part3Base64
})
.then((res) => {
console.log(res);
})
.catch((err) => {
console.log(err);
})