Nexacon Python SDK - External Integration with nx_token Authentication
Project description
Nexacon Python SDK
Python SDK for Nexacon API - Auto Token Generation with nx_token Authentication
Installation
pip install nexacon-sdk
Quick Start
Initialize client with API keys and username. The SDK automatically generates the nx_token when needed:
from nexacon import NexaconClient
# Initialize client with API keys and username
client = NexaconClient(
api_key="your_api_key",
secret_key="your_secret_key",
username="+255788811191", # Phone number or email - used for auto token generation
base_url="https://nxservice.quantumvision-tech.com/api/v1.0"
)
# Send message - token is auto-generated automatically
client.messaging.send(to="+255788811191", message="Hello!")
# Initiate call
call_url = client.calls.initiate_call(
to="+255788811191",
call_type="video",
room="my-room"
)
# Register device for push notifications
client.devices.register(
fcm_token="device_fcm_token",
platform="android"
)
# Manage rooms (group chats)
rooms = client.rooms.list()
new_room = client.rooms.create(title="My Group", description="Group chat")
client.rooms.add_member(new_room["name"], nxid="user_nxid")
# Check user presence
presence = client.presence.get(user="user_nxid")
No need to call auth separately - the SDK handles token generation automatically on first API call!
Documentation
Full documentation is available at https://nexacon-python-sdk.readthedocs.io/
Features
- External Authentication: nx_token-based authentication (no username/password)
- 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
License
MIT License - see LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nexacon_sdk-1.1.0.tar.gz.
File metadata
- Download URL: nexacon_sdk-1.1.0.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0180dc827c397c27cb9ca2796d07869a157990a47d7044d86a137412d63ef6de
|
|
| MD5 |
69200f8d06701b9893dc56773174ca43
|
|
| BLAKE2b-256 |
429a0b928db20a6da5c316ba98f0c7a9cdb46b7a36fbc024da61e57080aedf30
|
File details
Details for the file nexacon_sdk-1.1.0-py3-none-any.whl.
File metadata
- Download URL: nexacon_sdk-1.1.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
337e293566a87b24afd63186c0e67182503bbb7e2e33b33d116eac3fa912f112
|
|
| MD5 |
c5ba246a9531b7872169d322fe60ab21
|
|
| BLAKE2b-256 |
0bd0a860e4b60bbd4a17f9c7e7b9708a7dd0f8b44e7809b4401370c4a1b66661
|