diff --git a/README.md b/README.md index 0b03e12..8387633 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,14 @@ client = VikingClient(user_hash="YOUR_USER_HASH") # Replace with your actual us # Asynchronous client 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) @@ -217,7 +225,6 @@ async def get_file_information(): file = await client.get_file(file_hash) - asyncio.run(get_file_information()) ```