v3 asyncio/aiohttp alpha

This commit is contained in:
deesiigneer
2022-08-15 23:26:36 +03:00
parent 63ee509067
commit c08394addf
26 changed files with 376 additions and 350 deletions

16
examples/payments.py Normal file
View File

@@ -0,0 +1,16 @@
import pyspapi
import asyncio
api = pyspapi.API(card_id='card_id', token='token')
async def main():
print(await api.payment(amount=1,
redirect_url='https://www.google.com/',
webhook_url='https://www.google.com/',
data='some-data'
)
)
loop = asyncio.get_event_loop()
loop.run_until_complete(main())