From 397f10b8bd35f37be463791cbc2a2cb8cf6b0585 Mon Sep 17 00:00:00 2001 From: M-307 Date: Tue, 5 Jul 2022 15:48:25 +0700 Subject: [PATCH] add example for debugging --- example/debug.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 example/debug.py diff --git a/example/debug.py b/example/debug.py new file mode 100644 index 0000000..75da5cc --- /dev/null +++ b/example/debug.py @@ -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()) \ No newline at end of file