39 lines
954 B
PHP
39 lines
954 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
class NoCaptchaProxyless extends Anticaptcha implements AntiCaptchaTaskProtocol {
|
||
|
|
|
||
|
|
private $websiteUrl;
|
||
|
|
private $websiteKey;
|
||
|
|
private $websiteSToken;
|
||
|
|
|
||
|
|
public function getPostData() {
|
||
|
|
return array(
|
||
|
|
"type" => "NoCaptchaTaskProxyless",
|
||
|
|
"websiteURL" => $this->websiteUrl,
|
||
|
|
"websiteKey" => $this->websiteKey,
|
||
|
|
"websiteSToken" => $this->websiteSToken,
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function setTaskInfo($taskInfo) {
|
||
|
|
$this->taskInfo = $taskInfo;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getTaskSolution() {
|
||
|
|
return $this->taskInfo->solution->gRecaptchaResponse;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function setWebsiteURL($value) {
|
||
|
|
$this->websiteUrl = $value;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function setWebsiteKey($value) {
|
||
|
|
$this->websiteKey = $value;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function setWebsiteSToken($value) {
|
||
|
|
$this->websiteSToken = $value;
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|