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

See the docs/ directory and CONTRIBUTING.md.

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.1.tar.gz (21.2 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.1-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: webex_byova-0.1.1.tar.gz
  • Upload date:
  • Size: 21.2 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.1.tar.gz
Algorithm Hash digest
SHA256 c0757b96b5809f9695418d573b0f5425715d2b35ef3bdd35cbb929728e6ede67
MD5 9e6157fa849775d0693867a33b6ac52d
BLAKE2b-256 96f6cf8edea83701f46e5969965f7ce64154a78eb8429f63d2cade89a3309591

See more details on using hashes here.

Provenance

The following attestation bundles were made for webex_byova-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: webex_byova-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2abb32e6c0de7edf757d6befcaab41140dccf6b7cccc96d7a06e796a3f05e6b3
MD5 443034fb398fe14a8f9b03406daad345
BLAKE2b-256 702f94f0646444783818175d6ec10a87bcc75f0b645664989d6f1e3b9b6b9806

See more details on using hashes here.

Provenance

The following attestation bundles were made for webex_byova-0.1.1-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