Skip to content

Commit 0bd2450

Browse files
authored
Merge pull request #1 from Moist-Cat/main
fix get_balance failing with error 405
2 parents 74d9172 + 624e213 commit 0bd2450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nextcaptcha/next.py

+1-1
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)