Nexacon Python SDK Documentation
Welcome to the Nexacon Python SDK documentation. This SDK provides a simple interface to interact with the Nexacon API.
Contents:
Features
Auto Token Generation: The SDK automatically generates nx_token on first API call
Messaging: Send/receive messages, manage contacts
Calls: Initiate audio/video calls, group calls
Devices: Register devices for push notifications
Rooms: Create and manage group chat rooms
Presence: Check user online status
Installation
Install the SDK using pip:
pip install nexacon-sdk
Quick Start
Initialize the client with your API keys and username. The SDK handles token generation automatically:
from nexacon import NexaconClient
client = NexaconClient(
api_key="your_api_key",
secret_key="your_secret_key",
username="+255788811191"
)
# Send a message - token is auto-generated
client.messaging.send(to="+255788811191", message="Hello!")