update README

This commit is contained in:
2025-08-14 09:38:19 +03:00
parent 9ada61b63c
commit 354ac6d82d
+8 -1
View File
@@ -41,6 +41,14 @@ client = VikingClient(user_hash="YOUR_USER_HASH") # Replace with your actual us
# Asynchronous client # Asynchronous client
async_client = AsyncVikingClient(user_hash="YOUR_USER_HASH") # Replace with your actual user hash async_client = AsyncVikingClient(user_hash="YOUR_USER_HASH") # Replace with your actual user hash
# also you can use context manager both synchronous and asynchronous
# with VikingClient(user_hash="YOUR_USER_HASH") as client:
# Your code here
# async with AsyncVikingClient(user_hash="YOUR_USER_HASH") as async_client:
# Your asynchronous code here
``` ```
### Uploading a Local File (Synchronous) ### Uploading a Local File (Synchronous)
@@ -217,7 +225,6 @@ async def get_file_information():
file = await client.get_file(file_hash) file = await client.get_file(file_hash)
asyncio.run(get_file_information()) asyncio.run(get_file_information())
``` ```