Home

Awesome

Webex Teams Widgets Samples

Webex Teams Widgets are open-source React components that let you integrate Cisco Webex Messaging & Audio/Video into your web apps.

If you're new to Widgets, we recommend you try the Space Widget demo.

This repository gathers simple examples to start with the 'Space' and 'Recents' widgets.

Quickstart using hard-coded tokens (or passed as query parameters)

Enter the 'static' directory, and update each example with a Cisco Webex Teams API access token, or add ?token=XXXX as a query parameter.

Then simply open the html file on your local machine in Chrome or Firefox.

Examples:

Go to the static folder and open HTML file such as:

Quick start on Glitch

Click Remix on Glitch

Using Caddy: dynamically inject access tokens

Using Caddy template actions, it's possible to customize the samples by injecting your own token (with the ACCESS_TOKEN env variable) and query parameters on the URL (?roomId=, ?sip=, ?email=). Read instructions below.

Download caddy: https://caddyserver.com/download, and add the command to your path.

Run the commands below from bash shell, and access the samples at ':9000/' (and ':9443/' for HTTPS access):

git clone https://github.com/CiscoDevNet/webex-widget-samples
cd webex-widget-samples
cd caddy
# Starts caddy with a Cisco Webex Teams API access token (check https://developer.webex.com)
ACCESS_TOKEN=access_token  caddy

Examples: