8000 fix get_balance failing with error 405 · nextcaptcha/nextcaptcha-python@624e213 · GitHub
[go: up one dir, main page]

Skip to content

Commit 624e213

Browse files
committed
fix get_balance failing with error 405
1 parent 74d9172 commit 624e213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nextcaptcha/next.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self, client_key: str, solft_id: str, callback_url: str, open_log:
3939
self.session = requests.session()
4040

4141
def _get_balance(self) -> str:
42-
resp = self.session.get(url=self.HOST + "/getBalance", json={"clientKey": self.client_key})
42+
resp = self.session.post(url=self.HOST + "/getBalance", json={"clientKey": self.client_key})
4343
if resp.status_code != 200:
4444
if self.open_log:
4545
logging.error(f"Error: {resp.status_code} {resp.text}")

0 commit comments

Comments
 (0)
0