-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfuncaptcha.php
72 lines (58 loc) · 2.02 KB
/
funcaptcha.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
class FunCaptcha extends Anticaptcha implements AntiCaptchaTaskProtocol {
private $websiteUrl;
private $jsSubdomain;
private $websitePublicKey;
private $proxyType = "http";
private $proxyAddress;
private $proxyPort;
private $proxyLogin;
private $proxyPassword;
private $userAgent = "";
private $cookies = "";
public function getPostData() {
return array(
"type" => "FunCaptchaTask",
"websiteURL" => $this->websiteUrl,
"funcaptchaApiJSSubdomain" => $this->jsSubdomain,
"websitePublicKey" => $this->websitePublicKey,
"proxyType" => $this->proxyType,
"proxyAddress" => $this->proxyAddress,
"proxyPort" => $this->proxyPort,
"proxyLogin" => $this->proxyLogin,
"proxyPassword" => $this->proxyPassword,
"userAgent" => $this->userAgent,
"cookies" => $this->cookies
);
}
public function getTaskSolution() {
return $this->taskInfo->solution->token;
}
public function setWebsiteURL($value) {
$this->websiteUrl = $value;
}
public function setWebsitePublicKey($value) {
$this->websitePublicKey = $value;
}
public function setProxyType($value) {
$this->proxyType = $value;
}
public function setProxyAddress($value) {
$this->proxyAddress = $value;
}
public function setProxyPort($value) {
$this->proxyPort = $value;
}
public function setProxyLogin($value) {
$this->proxyLogin = $value;
}
public function setProxyPassword($value) {
$this->proxyPassword = $value;
}
public function setUserAgent($value) {
$this->userAgent = $value;
}
public function setCookies($value) {
$this->cookies = $value;
}
}