Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nexacon_sdk-1.1.1.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexacon_sdk-1.1.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file nexacon_sdk-1.1.1.tar.gz.

File metadata

  • Download URL: nexacon_sdk-1.1.1.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

Hashes for nexacon_sdk-1.1.1.tar.gz
Algorithm Hash digest
SHA256 63736c482131e51cca99851f051cda545a1326e06414d930156399db3be53809
MD5 3a2d528f373114c4605fdb5664a0c9dd
BLAKE2b-256 70b3cf956cf3498aee95c23299a0a0c8b755c3eea1f7da956b2e64e1a7db9874

See more details on using hashes here.

File details

Details for the file nexacon_sdk-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: nexacon_sdk-1.1.1-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

Hashes for nexacon_sdk-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f32ccc1c665827bfa2b3923fe0ab914f3b579990c25c28bca9bcab683ccde70
MD5 21e818d7f43cca56f9b5198cfab9b84c
BLAKE2b-256 0ff5c681c6014459bc73884d9ce6732ba211e0c963153d91b4f778f7686cec2d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page