Skip to content

WebexSamples/simple_service_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

webex_service_app

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.

Prerequisites

Dependencies

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.

Setup

  1. 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.

  2. Replace 'A sub users email' with the email of the subuser for whom you want to create the meeting.

Running the Script

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.

License

This project is licensed under the terms of the MIT license.

Releases

No releases published

Packages

No packages published

Languages