Skip to main content

Python SDK for Webex Contact Center BYOVA / BYODS — Data Sources, Service App tokens, and Integration OAuth

Project description

webex-byova

Python SDK for Webex Contact Center BYOVA and the foundational Bring Your Own Data Source (BYODS) APIs.

Simplify Service App token management, Integration OAuth, DataSource CRUD, schema discovery, and JWS verification.

Install

pip install webex-byova

Quick start

import asyncio
from webex_byova import BYOVA
from webex_byova.models import IntegrationCredentials, ServiceAppCredentials

sdk = BYOVA(
    integration=IntegrationCredentials(
        client_id="YOUR_INTEGRATION_CLIENT_ID",
        client_secret="YOUR_INTEGRATION_CLIENT_SECRET",
        redirect_uri="http://127.0.0.1:8765/callback",
    ),
    service_app=ServiceAppCredentials(
        client_id="YOUR_SERVICE_APP_CLIENT_ID",
        client_secret="YOUR_SERVICE_APP_CLIENT_SECRET",
    ),
)

async def main():
  # Developer authorizes Integration (not customer admin)
  await sdk.integration.aauthorize(open_browser=True)

  await sdk.webhooks.aensure_service_app_webhooks(
      target_url="https://your-app.example.com/webhooks/webex",
  )

asyncio.run(main())

After a customer admin authorizes your Service App in Control Hub, handle the webhook:

result = await sdk.ahandle_service_app_webhook(webhook_json)
client = await sdk.aget_client_for_org(result.org_id)
sources = await client.data_sources.alist()

Environment variables

export WEBEX_INTEGRATION_CLIENT_ID=...
export WEBEX_INTEGRATION_CLIENT_SECRET=...
export WEBEX_SA_CLIENT_ID=...
export WEBEX_SA_CLIENT_SECRET=...
export WEBEX_INTEGRATION_REDIRECT_URI=http://127.0.0.1:8765/callback
sdk = BYOVA.from_env()

Documentation

Full documentation: joezanini.github.io/byova-sdk-python

Build and preview locally:

pip install -e ".[docs]"
mkdocs serve -f docs/mkdocs.yml   # http://127.0.0.1:8000

See CONTRIBUTING.md for development setup.

License

MIT — see LICENSE.

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

webex_byova-0.1.2.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

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

webex_byova-0.1.2-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file webex_byova-0.1.2.tar.gz.

File metadata

  • Download URL: webex_byova-0.1.2.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for webex_byova-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2f3d0f9563c08e846e55dc1bcf720f0b56eddd844d03bb6aa0ad785cce8d24f5
MD5 16b40eff07e99a6065211092fd1107b7
BLAKE2b-256 88ab771da87886628b82093186c8d5befa477e437e2c7c77c310b563b0287435

See more details on using hashes here.

Provenance

The following attestation bundles were made for webex_byova-0.1.2.tar.gz:

Publisher: release.yml on Joezanini/byova-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file webex_byova-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: webex_byova-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for webex_byova-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 75f3045953229bfb0212199a12eef6caaab5832b85e53eebe60ac1d7040a1642
MD5 16b0f538f7e0e31ea24a8975ced66ced
BLAKE2b-256 8033b33832c422f2d4313f9a327c012a19cf4184c213e9216141a478ce1b10ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for webex_byova-0.1.2-py3-none-any.whl:

Publisher: release.yml on Joezanini/byova-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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