Webex Service App
This Python script allows you to create a meeting on behalf of a subuser in a Webex organization using service app credentials.
- Python 3.x
- An active Webex account developer account
- A regisetered service app
This script depends on the following Python modules:
- requests
- json
- os
- datetime
- webbrowser
You can install these dependencies using pip:
pip install requests
Note: The other dependencies are part of the Python Standard Library and do not need to be installed separately.
-
Replace
YOUR CLIENT ID HERE
,YOUR CLIENT SECRET HERE
,ACCESS TOKEN POST ADMIN AUTHORIZATION
,REFRESH TOKEN POST ADMIN AUTHORIZATION
with your own values. These values are produced by registering a service app on Webex Developer Portal @ developer.webex.com. -
Replace
'A sub users email'
with the email of the subuser for whom you want to create the meeting.
You can run the script using Python:
python serviceapp.py
This will create a meeting 24 hours from the current time, lasting for one hour. If the access token is invalid and returns a 401 error, the script will automatically refresh the tokens and retry creating the meeting.
Remember to store your tokens securely in a production environment.
This project is licensed under the terms of the MIT license.