pyWebExMessage - WebEx Bot that generates adaptive cards to a WebEx Room
Examples
Running the Bot (Questions)
Output
Getting Started with CLUS_2022 WebEx Message Room Bot
As a first time speaker I thought using WebEx to expand the interactivity and longevity of my sessions I wrote this bot. I wanted to share with other Speakers in case they wanted to use it for their sessions.
To get started with CLUS_2022 WebEx Bot, follow the steps below:
Create A Room for Your Session
In WebEx create and customize a room for your session
Get a 24-hour token and Room ID
Visit the following developer.webex.com URL to get the room ID: List_Rooms
Get a 24-hour token
Click the copy button to obtain a 24-hour token. This token will be used to access the room. Keep it safe and secure. I recommending using environment variables to store the token so you do not have to input it everytime you run the bot.
Get the Room ID
Next get the room ID for the room you created. You need this to pass messages into the room with the bot. You can get the room ID in the browser directly or with a tool like Postman.
In the browser
Click Run
Find your room
In Postman
After you have the token and Rooms URL you can use Postman to get your rooms as well. Make a new GET request to the rooms URL. Specify Bearer token as the Authorization Type and paste in your token. Save this request if you would like in a Collection for reuse.
Installing the bot
To install the bot there are a few simple steps:
Setup a virtual environment
Ubuntu Linux
The following instructions are based on Windows WSL2 and Ubuntu however any flavour of Linux will work with possibly slightly different commands.
Confirm Python 3 is installed
$ python3 -V
Python 3.9.10
Create and activate a virtual environment
$ sudo apt install python3-venv
$ python3 -m venv message_room
$ source message_room/bin/activate
(message_room)$
Install the bot
(message_room)$pip install pywebexmessage
Windows
Confirm Python 3.9 is installed
Download Python
Create and activate a virtual environment
C:\>python3 -m venv message_room
C:\>message_room\Scripts\activate
(message_room) C:\>
Install the requirements
(message_room)$pip install pywebexmessage
Using the bot
Run the bot as an interactive session
(message_room)$ message_room
The form questions:
Question 1 - What is the roomID?
Question 2 - What is the token?
Question 3 - What is the image URL?
Question 4 - What is the small header text?
Question 5 - What is the title of the session?
Question 6 - What is the description of the session?
Question 7 - Where is the session?
Question 8 - What day is the session?
Question 9 - What time is the session?
Question 10 - Who are the speakers?
Question 11 - URL of the session or any other URL?
Question 12 - A label for the URL button?
Environment variables
Every question can be stored as a variable in the environment. This is useful if you want to reuse the same question in multiple messages. export ROOMID= export TOKEN= export IMAGEURL= export HEADER= export TITLE=<title> export DESCRIPTION= export LOCATION= export DATE= export TIME= export SPEAKERS= export URL= export URL_LABEL=<url_label>
Metadata
Release files for pywebexmessage 1.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyWebExMessage-1.0.10.tar.gz | 17.4 kB | Without provenance | Details for pyWebExMessage-1.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyWebExMessage-1.0.10-py3-none-any.whl | Python 3 | none | any | Details for pyWebExMessage-1.0.10-py3-none-any.whl |
Total release size: 35.4 kB
Release files / pyWebExMessage-1.0.10.tar.gz
| Download URL | pyWebExMessage-1.0.10.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39149ee47725a4de5f4dba2d2dc94a1ba0991d9a374b9db56de81eaf2ca2d226
|
|
BLAKE2b-256 checksum How to use checksums |
b851e86deb5ecbccf2bdad779a6550b791065cb4ed4706a6515c25a34e462df3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.3 Linux/5.4.72-microsoft-standard-WSL2
|
Release files / pyWebExMessage-1.0.10-py3-none-any.whl
| Download URL | pyWebExMessage-1.0.10-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8cdac7145c7677a028ba3058cd64145b96137a7e9517fc90183bd1169ddb0e16
|
|
BLAKE2b-256 checksum How to use checksums |
558696faa664e6052cebfdc34daaa69abca79ee324a3136baba0a040150ac9a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.3 Linux/5.4.72-microsoft-standard-WSL2
|
Security for pywebexmessage 1.0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.