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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file wxcadm-3.1.0.tar.gz
.
File metadata
- Download URL: wxcadm-3.1.0.tar.gz
- Upload date:
- Size: 83.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58061ccdaf7bbff599a723dd6d5956bcf75054a0e114df45abc1782f7f583824 |
|
MD5 | 4a27c77b79f383f6ca990d9c9c20b0e3 |
|
BLAKE2b-256 | daa285466dfe9667d4e025f600290f9c4a598b58dd0fd6eb9e6752100fb531ef |
File details
Details for the file wxcadm-3.1.0-py3-none-any.whl
.
File metadata
- Download URL: wxcadm-3.1.0-py3-none-any.whl
- Upload date:
- Size: 94.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e29ae235e6ac0114587226c129debf087438fd57f9d3923a5cc52f91a367aeba |
|
MD5 | 5f24df16bdf73c33fa01926de6e15595 |
|
BLAKE2b-256 | c154b3ede83ecf53288c25a3d1fcabe3e342ac26ad1aa319e9890b8227f36fb1 |