Skip to content

Commit

Permalink
Merge pull request #1 from Moist-Cat/main
Browse files Browse the repository at this point in the history
fix get_balance failing with error 405
  • Loading branch information
nextcaptcha0 committed Apr 18, 2024
2 parents 74d9172 + 624e213 commit 0bd2450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nextcaptcha/next.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 0bd2450

Please sign in to comment.