Skip to main content

A Python 3 Library for Webex Calling Administrators

Project description

wxcadm

Python Library for Webex Calling Administration

Purpose

wxcadm is a Python 3 library to simplify the API calls to Webex in order to manage and report on users of Webex Calling. Although the primary focus is Webex Calling, many of the other Webex admin functions are included. This library is not meant to be an interface to the Meetings and Messaging capabilities of Webex....there are plenty of other modules that provide that.

Installation

wxcadm is available as a PIP Package

$ python -m pip install wxcadm

Quickstart

By creating a Webex instance with a valid API Access Token, the module will pull the Webex Organization information as well as all the People within the Organization. The Org instance will contain all People, whether they have the Webex Calling service or not. An Org method get_webex_people() makes it easy to get only the People that have Webex Calling.

You can obtain a 12-hour access token by logging into https://developer.webex.com and visiting the Getting Started page.

Once you have the access token, the following will initialize the API connection and pull data

import wxcadm

access_token = "Your API Access Token"
webex = wxcadm.Webex(access_token)

Since most administrators only have access to a single Webex Organization, you can access that Organization with the org attribute. If the administrator has access to more than one Organization, they can be accessed using the orgs attribute, which is a list of the organizations that can be managed. See the "Regarding Multiple Organizations" section below for further information.

You can see all the attributes with

vars(webex.org)

Note that, by default, all the People are pulled when the Org is initialized. For large organizations, this may take a while, but then all the People are stored as Person objects.

To iterate over the list of people, simply loop through the people attribute of the Org. For example:

for person in webex.org.people:
    # Print all of the attributes of the Person
    print(vars(person))
    # Or access the attributes directly
    email = person.email

Documentation

wxcadm documentation is housed at Read The Docs.

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

wxcadm-2.0.0.tar.gz (49.6 kB view details)

Uploaded Source

Built Distribution

wxcadm-2.0.0-py3-none-any.whl (49.2 kB view details)

Uploaded Python 3

File details

Details for the file wxcadm-2.0.0.tar.gz.

File metadata

  • Download URL: wxcadm-2.0.0.tar.gz
  • Upload date:
  • Size: 49.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for wxcadm-2.0.0.tar.gz
Algorithm Hash digest
SHA256 fd106279f9a8278dfc21c4f36997ab758793ab44d5d5c1f0cb0538782444bd76
MD5 5250bca8066f5a793df29e91d46ec17e
BLAKE2b-256 bf163a4842a58282dd4701dc28f472231173feb6d22e02ea10cdfc85311cf484

See more details on using hashes here.

File details

Details for the file wxcadm-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: wxcadm-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 49.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for wxcadm-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f91d4ae4b6d0d4409e109ac64ed231e2fce46001eedc03ed7bc78d0aac95674
MD5 ece9c5faaf8932902ac478b1c922da99
BLAKE2b-256 9b474868a4c1d7ff9a91a498f270d8c3156ea2f137db26ae20aac42eca6a38b6

See more details on using hashes here.

Supported by

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