mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 11:52:18 +00:00
add example for debugging
This commit is contained in:
parent
f5b2899f66
commit
397f10b8bd
12
example/debug.py
Normal file
12
example/debug.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import asyncio
|
||||||
|
|
||||||
|
from enkanetwork import EnkaNetworkAPI
|
||||||
|
|
||||||
|
client = EnkaNetworkAPI(lang="th", debug=True)
|
||||||
|
|
||||||
|
async def main():
|
||||||
|
await client.fetch_user(843715177)
|
||||||
|
# You can see the debug log in console.
|
||||||
|
|
||||||
|
loop = asyncio.get_event_loop()
|
||||||
|
loop.run_until_complete(main())
|
Loading…
Reference in New Issue
Block a user