mirror of
https://github.com/yawaflua/Py-SPW.git
synced 2025-12-09 20:09:31 +02:00
upload v 1.2
added get balance method
This commit is contained in:
@@ -243,3 +243,6 @@ class sp_api_base:
|
||||
raise err.BadParameter(f'Missing parameter {error}')
|
||||
|
||||
time.sleep(request_delay)
|
||||
|
||||
def get_balance(self) -> int:
|
||||
return self.__get('/card').json()['balance']
|
||||
|
||||
Reference in New Issue
Block a user