Skip to main content

IdentifyOrg server-side SDK — identity verification, prepaid billing, and realtime call/chat token issuance.

Project description

identifyorg (Python server SDK)

pip install identifyorg
import os
from identifyorg import IdentifyOrgClient, IdentifyOrgApiError

identifyorg = IdentifyOrgClient(api_key=os.environ["IDENTIFYORG_SECRET_KEY"])

# Identity verification
result = identifyorg.verify_bvn("22212345678", first_name="Ada", last_name="Okafor",
                              idempotency_key="order-123")

# Top up credit
topup = identifyorg.topup(amount=5000)
print(topup["checkout_url"])

# Mint a realtime token for YOUR user, then hand it to the browser/mobile
# client (IdentifyOrg JS/React Native/Flutter/Kotlin SDK) — never send your
# secret key to a client.
call = identifyorg.streaming_token("video", identity=user.id, display_name=user.name)
return {"token": call["token"], "url": call["url"], "room_name": call["room_name"]}

chat = identifyorg.chat_token(visitor_id=visitor.id, visitor_name=visitor.name)

Errors raise IdentifyOrgApiError with .status and .code attributes.

Django / Flask example: minting a call token endpoint

@app.post("/api/call-token")
def call_token():
    return identifyorg.streaming_token("video", identity=current_user.id, display_name=current_user.name)

Your frontend calls this endpoint (never IdentifyOrg directly with a secret key), then passes the returned token/url straight into the IdentifyOrg JS SDK's joinCall().

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

identifyorg-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

identifyorg-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file identifyorg-0.1.0.tar.gz.

File metadata

  • Download URL: identifyorg-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for identifyorg-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ee9ac8a8086aaf26a75a37dbf721a78052b2c58ba047b407fd5b68e58dab657d
MD5 19471e5033e0315413c675100595ac5f
BLAKE2b-256 d3f8888bb8dc7ad18095ac872cbe25721ba9f418bbf8be4f3b519d2375f76faf

See more details on using hashes here.

File details

Details for the file identifyorg-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: identifyorg-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for identifyorg-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fdecf56c62954c25608bd7a06cc9e5987080b54c819d775adbbaa355e14d29e
MD5 b39f4e0d180bd2db9c19f38e10133906
BLAKE2b-256 ebe2a4672b9bfbf7a0a9aabb19f528f0a5b290fe8f87d682d3094c88f9804c47

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