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-4.4.3.tar.gz (166.7 kB view details)

Uploaded Source

Built Distribution

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

wxcadm-4.4.3-py3-none-any.whl (182.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wxcadm-4.4.3.tar.gz
  • Upload date:
  • Size: 166.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for wxcadm-4.4.3.tar.gz
Algorithm Hash digest
SHA256 933b4e9a61c24f98f3797fa95ae5fa565384e218c1bd362be4008c38eff41c2a
MD5 5bd23ab59d0c044714d1c47a35691810
BLAKE2b-256 4a16e73c9c4c984451bc0328f322a339847ab3e0d66d754247a01ac7f9a0d26f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wxcadm-4.4.3-py3-none-any.whl
  • Upload date:
  • Size: 182.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for wxcadm-4.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ff111c476937ffd85414df47bd67f0dc51ece98404f6d2c64610f5de3ece4cac
MD5 0f9ddffb4227c1b3957bc0fc8b502f8e
BLAKE2b-256 807ec7dd738fa286d6992ae514d6b5da0f70dad2e6d5d182d7e89cba8a1fb2ee

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