Basic Usage¶
This guide covers the fundamental operations you can perform with the Konigle SDK.
Client Initialization¶
Common Operations¶
Example Operation¶
from konigle import Client
# Setup the client
client = Client(api_key="your-api-key")
# List images
images = client.images.list(page=1, page_size=10)
for image in images.payload:
print(image.id, image.asset_url)
Async Support¶
The SDK supports async operations:
import asyncio
from konigle import AsyncClient
async def main():
async with AsyncClient(api_key="your-api-key") as client:
# Your async operations here
pass
asyncio.run(main())
Configuration Options¶
You can configure the client with various options:
client = Client(
api_key="your-api-key",
base_url="https://tim.konigle.com", # Confiure the base URL if needed
timeout=30, # Request timeout in seconds
)
Refer to configuration documentation for more details.