22
33from .core .base import CaptchaParams
44from .core .enum import ControlPostfixEnm
5- from .core .aio_captcha_handler import AIOCaptchaHandler
6- from .core .sio_captcha_handler import SIOCaptchaHandler
5+ from .core .aio_captcha_instrument import AIOCaptchaInstrument
6+ from .core .sio_captcha_instrument import SIOCaptchaInstrument
77
88__all__ = ("Control" ,)
99
@@ -134,7 +134,7 @@ def get_balance(self) -> dict:
134134 Notes:
135135 https://anti-captcha.com/apidoc/methods/getBalance
136136 """
137- self ._captcha_handling_instrument = SIOCaptchaHandler (captcha_params = self )
137+ self ._captcha_handling_instrument = SIOCaptchaInstrument (captcha_params = self )
138138 return self ._captcha_handling_instrument .send_post_request (
139139 session = self ._captcha_handling_instrument .session ,
140140 url_postfix = ControlPostfixEnm .GET_BALANCE ,
@@ -158,7 +158,7 @@ async def aio_get_balance(self) -> dict:
158158 Notes:
159159 https://anti-captcha.com/apidoc/methods/getBalance
160160 """
161- self ._captcha_handling_instrument = AIOCaptchaHandler (captcha_params = self )
161+ self ._captcha_handling_instrument = AIOCaptchaInstrument (captcha_params = self )
162162 return await self ._captcha_handling_instrument .send_post_request (
163163 url_postfix = ControlPostfixEnm .GET_BALANCE , payload = {"clientKey" : self .create_task_payload .clientKey }
164164 )
@@ -196,7 +196,7 @@ def get_queue_status(queue_id: int) -> dict:
196196 Notes:
197197 https://anti-captcha.com/apidoc/methods/getQueueStats
198198 """
199- return SIOCaptchaHandler .send_post_request (
199+ return SIOCaptchaInstrument .send_post_request (
200200 url_postfix = ControlPostfixEnm .GET_QUEUE_STATS , payload = {"queueId" : queue_id }
201201 )
202202
@@ -233,7 +233,7 @@ async def aio_get_queue_status(queue_id: int) -> dict:
233233 Notes:
234234 https://anti-captcha.com/apidoc/methods/getQueueStats
235235 """
236- return await AIOCaptchaHandler .send_post_request (
236+ return await AIOCaptchaInstrument .send_post_request (
237237 url_postfix = ControlPostfixEnm .GET_QUEUE_STATS , payload = {"queueId" : queue_id }
238238 )
239239
@@ -288,7 +288,7 @@ def get_spending_stats(self, **kwargs) -> dict:
288288 Notes:
289289 https://anti-captcha.com/apidoc/methods/getSpendingStats
290290 """
291- self ._captcha_handling_instrument = SIOCaptchaHandler (captcha_params = self )
291+ self ._captcha_handling_instrument = SIOCaptchaInstrument (captcha_params = self )
292292 return self ._captcha_handling_instrument .send_post_request (
293293 session = self ._captcha_handling_instrument .session ,
294294 url_postfix = ControlPostfixEnm .GET_SPENDING_STATS ,
@@ -346,7 +346,7 @@ async def aio_get_spending_stats(self, **kwargs) -> dict:
346346 Notes:
347347 https://anti-captcha.com/apidoc/methods/getSpendingStats
348348 """
349- self ._captcha_handling_instrument = AIOCaptchaHandler (captcha_params = self )
349+ self ._captcha_handling_instrument = AIOCaptchaInstrument (captcha_params = self )
350350 return await self ._captcha_handling_instrument .send_post_request (
351351 url_postfix = ControlPostfixEnm .GET_SPENDING_STATS ,
352352 payload = {"clientKey" : self .create_task_payload .clientKey , ** kwargs },
@@ -388,7 +388,7 @@ def get_app_stats(self, softId: int, mode: Optional[str] = None) -> dict:
388388 Notes:
389389 https://anti-captcha.com/apidoc/methods/getAppStats
390390 """
391- self ._captcha_handling_instrument = SIOCaptchaHandler (captcha_params = self )
391+ self ._captcha_handling_instrument = SIOCaptchaInstrument (captcha_params = self )
392392 return self ._captcha_handling_instrument .send_post_request (
393393 session = self ._captcha_handling_instrument .session ,
394394 url_postfix = ControlPostfixEnm .GET_APP_STATS ,
@@ -431,7 +431,7 @@ async def aio_get_app_stats(self, softId: int, mode: Optional[str] = None) -> di
431431 Notes:
432432 https://anti-captcha.com/apidoc/methods/getAppStats
433433 """
434- self ._captcha_handling_instrument = AIOCaptchaHandler (captcha_params = self )
434+ self ._captcha_handling_instrument = AIOCaptchaInstrument (captcha_params = self )
435435 return await self ._captcha_handling_instrument .send_post_request (
436436 url_postfix = ControlPostfixEnm .GET_APP_STATS ,
437437 payload = {"clientKey" : self .create_task_payload .clientKey , "softId" : softId , "mode" : mode },
@@ -455,7 +455,7 @@ def report_incorrect_image(self, taskId: int) -> dict:
455455 Notes:
456456 https://anti-captcha.com/apidoc/methods/reportIncorrectImageCaptcha
457457 """
458- self ._captcha_handling_instrument = SIOCaptchaHandler (captcha_params = self )
458+ self ._captcha_handling_instrument = SIOCaptchaInstrument (captcha_params = self )
459459 return self ._captcha_handling_instrument .send_post_request (
460460 session = self ._captcha_handling_instrument .session ,
461461 url_postfix = ControlPostfixEnm .REPORT_INCORRECT_IMAGE_CAPTCHA ,
@@ -480,7 +480,7 @@ async def aio_report_incorrect_image(self, taskId: int) -> dict:
480480 Notes:
481481 https://anti-captcha.com/apidoc/methods/reportIncorrectImageCaptcha
482482 """
483- self ._captcha_handling_instrument = AIOCaptchaHandler (captcha_params = self )
483+ self ._captcha_handling_instrument = AIOCaptchaInstrument (captcha_params = self )
484484 return await self ._captcha_handling_instrument .send_post_request (
485485 url_postfix = ControlPostfixEnm .REPORT_INCORRECT_IMAGE_CAPTCHA ,
486486 payload = {"clientKey" : self .create_task_payload .clientKey , "taskId" : taskId },
@@ -504,7 +504,7 @@ def report_incorrect_recaptcha(self, taskId: int) -> dict:
504504 Notes:
505505 https://anti-captcha.com/apidoc/methods/reportIncorrectRecaptcha
506506 """
507- self ._captcha_handling_instrument = SIOCaptchaHandler (captcha_params = self )
507+ self ._captcha_handling_instrument = SIOCaptchaInstrument (captcha_params = self )
508508 return self ._captcha_handling_instrument .send_post_request (
509509 session = self ._captcha_handling_instrument .session ,
510510 url_postfix = ControlPostfixEnm .REPORT_INCORRECT_RECAPTCHA ,
@@ -529,7 +529,7 @@ async def aio_report_incorrect_recaptcha(self, taskId: int) -> dict:
529529 Notes:
530530 https://anti-captcha.com/apidoc/methods/reportIncorrectRecaptcha
531531 """
532- self ._captcha_handling_instrument = AIOCaptchaHandler (captcha_params = self )
532+ self ._captcha_handling_instrument = AIOCaptchaInstrument (captcha_params = self )
533533 return await self ._captcha_handling_instrument .send_post_request (
534534 url_postfix = ControlPostfixEnm .REPORT_INCORRECT_RECAPTCHA ,
535535 payload = {"clientKey" : self .create_task_payload .clientKey , "taskId" : taskId },
@@ -553,7 +553,7 @@ def report_correct_recaptcha(self, taskId: int) -> dict:
553553 Notes:
554554 https://anti-captcha.com/apidoc/methods/reportCorrectRecaptcha
555555 """
556- self ._captcha_handling_instrument = SIOCaptchaHandler (captcha_params = self )
556+ self ._captcha_handling_instrument = SIOCaptchaInstrument (captcha_params = self )
557557 return self ._captcha_handling_instrument .send_post_request (
558558 session = self ._captcha_handling_instrument .session ,
559559 url_postfix = ControlPostfixEnm .REPORT_CORRECT_RECAPTCHA ,
@@ -578,7 +578,7 @@ async def aio_report_correct_recaptcha(self, taskId: int) -> dict:
578578 Notes:
579579 https://anti-captcha.com/apidoc/methods/reportCorrectRecaptcha
580580 """
581- self ._captcha_handling_instrument = AIOCaptchaHandler (captcha_params = self )
581+ self ._captcha_handling_instrument = AIOCaptchaInstrument (captcha_params = self )
582582 return await self ._captcha_handling_instrument .send_post_request (
583583 url_postfix = ControlPostfixEnm .REPORT_CORRECT_RECAPTCHA ,
584584 payload = {"clientKey" : self .create_task_payload .clientKey , "taskId" : taskId },
@@ -602,7 +602,7 @@ def report_incorrect_hcaptcha(self, taskId: int) -> dict:
602602 Notes:
603603 https://anti-captcha.com/apidoc/methods/reportIncorrectHcaptcha
604604 """
605- self ._captcha_handling_instrument = SIOCaptchaHandler (captcha_params = self )
605+ self ._captcha_handling_instrument = SIOCaptchaInstrument (captcha_params = self )
606606 return self ._captcha_handling_instrument .send_post_request (
607607 session = self ._captcha_handling_instrument .session ,
608608 url_postfix = ControlPostfixEnm .REPORT_INCORRECT_HCAPTCHA ,
@@ -627,7 +627,7 @@ async def aio_report_incorrect_hcaptcha(self, taskId: int) -> dict:
627627 Notes:
628628 https://anti-captcha.com/apidoc/methods/reportIncorrectHcaptcha
629629 """
630- self ._captcha_handling_instrument = AIOCaptchaHandler (captcha_params = self )
630+ self ._captcha_handling_instrument = AIOCaptchaInstrument (captcha_params = self )
631631 return await self ._captcha_handling_instrument .send_post_request (
632632 url_postfix = ControlPostfixEnm .REPORT_INCORRECT_HCAPTCHA ,
633633 payload = {"clientKey" : self .create_task_payload .clientKey , "taskId" : taskId },
0 commit comments