From 624e213e2bae0911f484def00f00afe833dbf5c5 Mon Sep 17 00:00:00 2001 From: Moist-Cat Date: Wed, 17 Apr 2024 15:05:11 -0400 Subject: [PATCH] fix get_balance failing with error 405 --- nextcaptcha/next.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextcaptcha/next.py b/nextcaptcha/next.py index ce2ae90..0badb58 100644 --- a/nextcaptcha/next.py +++ b/nextcaptcha/next.py @@ -39,7 +39,7 @@ def __init__(self, client_key: str, solft_id: str, callback_url: str, open_log: self.session = requests.session() def _get_balance(self) -> str: - resp = self.session.get(url=self.HOST + "/getBalance", json={"clientKey": self.client_key}) + resp = self.session.post(url=self.HOST + "/getBalance", json={"clientKey": self.client_key}) if resp.status_code != 200: if self.open_log: logging.error(f"Error: {resp.status_code} {resp.text}")