mirror of
https://github.com/deesiigneer/pyspapi.git
synced 2026-04-20 04:25:25 +00:00
new version
This commit is contained in:
12
README.rst
12
README.rst
@@ -46,9 +46,17 @@ Checking the balance
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
.. code:: py
|
||||
|
||||
import pyspapi
|
||||
from pyspapi import SPAPI
|
||||
from asyncio import get_event_loop
|
||||
|
||||
print(pyspapi.SPAPI(card_id='card_id', token='token').balance)
|
||||
spapi = SPAPI(card_id='CARD_ID', token='TOKEN')
|
||||
|
||||
|
||||
async def main():
|
||||
print(await spapi.balance)
|
||||
|
||||
loop = get_event_loop()
|
||||
loop.run_until_complete(main())
|
||||
|
||||
More examples can be found in the `examples <https://github.com/deesiigneer/pyspapi/tree/main/examples>`_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user