1 | <?php |
||
11 | class Client extends GenericClient |
||
12 | { |
||
13 | const STATUS_OK_REPORT_RECORDED = 'OK_REPORT_RECORDED'; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $serverBaseUri = 'http://rucaptcha.com'; |
||
19 | |||
20 | /** |
||
21 | * Your application ID in Rucaptcha catalog. |
||
22 | * The value `1013` is ID of this library. Set in false if you want to turn off sending any ID. |
||
23 | * @see https://rucaptcha.com/software/view/php-api-client |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $softId = '1013'; |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | public function sendCaptcha($content, array $extra = []) |
||
38 | |||
39 | /** |
||
40 | * Bulk captcha result. |
||
41 | * |
||
42 | * @param int[] $captchaIds # Captcha task Ids array |
||
43 | * @return string[] # Array $captchaId => $captchaText or false if is not ready |
||
44 | * @throws RuntimeException |
||
45 | */ |
||
46 | public function getCaptchaResultBulk(array $captchaIds) |
||
70 | 1 | ||
71 | 1 | /** |
|
72 | * @return string |
||
73 | 23 | */ |
|
74 | 23 | public function getBalance() |
|
79 | |||
80 | /** |
||
81 | * @param $captchaId |
||
82 | * @return bool |
||
83 | * @throws RuntimeException |
||
84 | */ |
||
85 | public function badCaptcha($captchaId) |
||
93 | |||
94 | /** |
||
95 | * @param array $paramsList |
||
96 | * @return array |
||
97 | */ |
||
98 | public function getLoad(array $paramsList = ['waiting', 'load', 'minbid', 'averageRecognitionTime']) |
||
117 | } |
||
118 |