Registry / communication / webexteamssdk

webexteamssdk

JSON →
library1.7pypiunverified

The `webexteamssdk` is a community-developed Python SDK for interacting with the Webex Teams (now Webex App) APIs. While it achieved its last official release at v1.7, the project has been superseded by `webexpythonsdk` since October 2022, which is now the actively maintained version. Users are strongly encouraged to migrate to `webexpythonsdk` for new projects and ongoing development.

pip install webexteamssdk
INSTALL
IMPORT
SIG · WEBEXTEAMSSDK
W
webexteamssdk
communicationenv1.7
Install
3.6s avg
Import
675ms
Disk
26MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.7 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.695s · 28.3MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 3.6s · import 0.656s · 29MB
26MB installed
● package 26MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WebexTeamsAPI
from webexteamssdk import WebexTeamsAPI
from webexpythonsdk import WebexTeamsAPI
`webexpythonsdk` is the successor library, but this entry is for `webexteamssdk`.

Demonstrates initializing the API with an access token (expected via environment variable) and fetching information about the authenticated user and their rooms.

import os from webexteamssdk import WebexTeamsAPI # Initialize the API connection # By default, the SDK looks for a WEBEX_TEAMS_ACCESS_TOKEN environment variable. # Ensure your Webex access token is set in your environment. access_token = os.environ.get('WEBEX_TEAMS_ACCESS_TOKEN', '') if not access_token: print("Error: WEBEX_TEAMS_ACCESS_TOKEN environment variable not set.") print("Please get a token from developer.webex.com/my-apps and set it.") else: try: api = WebexTeamsAPI(access_token=access_token) # Get details about the authenticated user me = api.people.me() print(f"Authenticated as: {me.displayName} (ID: {me.id})") # List up to 5 rooms (spaces) print("\nMy Spaces (max 5):") for room in api.rooms.list(max=5): print(f"- {room.title} (ID: {room.id})") except Exception as e: print(f"An error occurred: {e}") if "401 Unauthorized" in str(e) or "access token" in str(e): print("Please verify your WEBEX_TEAMS_ACCESS_TOKEN is valid and not expired.")
Debug
Known issues
breaking`webexteamssdk` is officially deprecated. The maintainers have replaced it with `webexpythonsdk` (available via `pip install webexpythonsdk`). While functionally similar, `webexpythonsdk` requires Python 3.10+ and uses a different package name.
fix
Migrate your project to `webexpythonsdk`. Update your `requirements.txt` and import statements (e.g., `from webexpythonsdk import WebexTeamsAPI`). Review `webexpythonsdk` documentation for any minor API changes.
affects: All versions of `webexteamssdk` (v1.x)
gotchaThe original GitHub repository `CiscoDevNet/webexteamssdk` is no longer actively maintained. All new development and bug fixes are happening in the `WebexCommunity/WebexPythonSDK` repository, which corresponds to the `webexpythonsdk` package.
fix
For support, issues, or contributions, refer to the `webexpythonsdk` project's GitHub repository. Do not open issues on the `CiscoDevNet/webexteamssdk` repo.
affects: All versions
gotchaAPI access requires an access token. The SDK primarily expects it via the `WEBEX_TEAMS_ACCESS_TOKEN` environment variable. Misconfiguration often leads to `401 Unauthorized` errors.
fix
Ensure `WEBEX_TEAMS_ACCESS_TOKEN` is correctly set in your environment with a valid token from developer.webex.com/my-apps. If providing explicitly, pass `access_token='YOUR_TOKEN'` to `WebexTeamsAPI()`.
affects: All versions
gotchaWebex APIs are rate-limited. While `webexteamssdk` has some retry mechanisms, intensive use might hit limits. Malformed `Retry-After` headers from the API could historically cause crashes (fixed in `webexpythonsdk` v2.0.5).
fix
Implement robust error handling for `ApiError` exceptions. Consider adding delays between consecutive API calls, or migrate to `webexpythonsdk` which has improved rate limit handling.
affects: All versions of `webexteamssdk`
Upgrade
Version history
1.7latest on PyPI · released Jun 14, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
25
OpenAI (training)
1
Resources