mirror of
https://github.com/deesiigneer/pyspapi.git
synced 2026-04-20 12:35:26 +00:00
v3 asyncio/aiohttp alpha
This commit is contained in:
12
examples/get_name_history.py
Normal file
12
examples/get_name_history.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import pyspapi
|
||||
import asyncio
|
||||
|
||||
api = pyspapi.API(card_id='card_id', token='token')
|
||||
|
||||
|
||||
async def main():
|
||||
print(await api.get_name_history(uuid='63ed47877aa3470fbfc46c5356c3d797'))
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.run_until_complete(main())
|
||||
|
||||
Reference in New Issue
Block a user