Python SDK
Install and configure the Informly Python SDK
Installation
pip install informly-sdkInitialize the Client
from informly import Informly
client = Informly(token="YOUR_API_TOKEN")Configuration
| Option | Type | Default | Description |
|---|---|---|---|
token | str | — | Your API token (required) |
base_url | str | http://api.informly.co/api/v1 | API base URL |
timeout | float | 30.0 | Request timeout in seconds |
Async Support
import asyncio
from informly import AsyncInformly
async def main():
client = AsyncInformly(token="YOUR_API_TOKEN")
response = await client.contacts.list_contacts()
print(response.data)
asyncio.run(main())Error Handling
from informly import ApiError
try:
contact = client.contacts.get_contact(id="contact-id")
except ApiError as e:
print(f"Status: {e.status_code}")
print(f"Message: {e.body}")For endpoint usage examples, see the API Reference — each endpoint includes a Python tab with SDK code.
Last updated on