Skip to content

This sample application demonstrates how to build a Zoom Contact Center App with vanilla JavaScript, Node.js, and Express.

Notifications You must be signed in to change notification settings

zoom/zcc-javascript-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zoom Contact Center App SDK JavaScript sample

This repo is an HTML / CSS / JavaScript website that uses the Zoom Contact Center Apps to integrate a third party app into the Zoom Contact Center desktop interface.

App has reference implementation for:

  • Authentication flows: marketplace authentication, Zoom client deep linking
  • REST API calls and retrieving user information
  • Zoom Apps SDK app context methods

Start your Ngrok (reverse proxy)

Zoom Apps do not support localhost, and must be served over https. To develop locally, you need to tunnel traffic to this application via https, because the application runs in Docker containers serving traffic from http://localhost. You can use Ngrok to do this. Once installed you may run this command from your terminal:

ngrok http 3000

Ngrok will output the origin it has created for your tunnel, eg https://9a20-38-99-100-7.ngrok.io. You'll need to use this across your Zoom App configuration in the Zoom Marketplace (web) build flow (see below).

Please copy the https origin from the Ngrok terminal output and paste it in the PUBLIC_URL value in the .env file. ngrok https origin

Setup in Zoom Marketplace app build flow

The Zoom Marketplace build flow for a Zoom App may be found here. You will need a developer account with Zoom Apps enabled. You can create and then update an app using the zcc-app-manifest.json app manifest JSON object:

Environment Variables

Create a .env file:

ZOOM_CLIENT_ID=YOUR_CLIENT_ID_HERE
ZOOM_CLIENT_SECRET=YOUR_CLIENT_SECRET_HERE
ZOOM_REDIRECT_URI=https://example.ngrok.app/auth/callback
PORT=3000

⚠️ Do not store credentials in plain text on production environments

Getting Started

npm install
node server.js

Codelab


Deployment

The JavaScript Sample App can be easily deployed to GitHub Pages, or another static web hosting service, like an AWS S3 bucket.

GitHub Pages

  1. Create a repo on GitHub.

  2. Add the remote to your project:

    $ git remote add origin GITHUB_URL/GITHUB_USERNAME/GITHUB_REPO_NAME.git

  3. Git add, commit, and push your project:

    $ git add -A

    $ git commit -m "deploying to github"

    $ git push origin master

  4. On GitHub, in your repo, navigate to the "settings" page, scroll down to the "GitHub Pages" section, and choose the "master branch folder" for the source.

  5. Now your project will be deployed to https://GITHUB_USERNAME.github.io/GITHUB_REPO_NAME.

Other Static Web Hosting

  1. Deploy the directory to a static web hosting service, like an AWS S3 bucket.

Need help?

If you're looking for help, try Developer Support or our Developer Forum. Priority support is also available with Premier Developer Support plans.

About

This sample application demonstrates how to build a Zoom Contact Center App with vanilla JavaScript, Node.js, and Express.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published