InformlyInformly

Python SDK

Install and configure the Informly Python SDK

Installation

pip install informly-sdk

Initialize the Client

from informly import Informly

client = Informly(token="YOUR_API_TOKEN")

Configuration

OptionTypeDefaultDescription
tokenstrYour API token (required)
base_urlstrhttp://api.informly.co/api/v1API base URL
timeoutfloat30.0Request 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

On this page