add example for debugging

This commit is contained in:
M-307 2022-07-05 15:48:25 +07:00
parent f5b2899f66
commit 397f10b8bd

12
example/debug.py Normal file
View 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())