Skip to content

Latest commit

 

History

History
96 lines (71 loc) · 1.67 KB

UPGRADING.md

File metadata and controls

96 lines (71 loc) · 1.67 KB

Upgrading to Webex

Follow this guide to upgrade from Cisco Spark to Webex.

Environment variables

Rename these environment variables

old new
CISCOSPARK_ACCESS_TOKEN WEBEX_ACCESS_TOKEN
CISCOSPARK_APPID_ORGID WEBEX_APPID_ORGID
CISCOSPARK_APPID_SECRET WEBEX_APPID_SECRET
CISCOSPARK_CLIENT_ID WEBEX_CLIENT_ID
CISCOSPARK_CLIENT_SECRET WEBEX_CLIENT_SECRET
CISCOSPARK_LOG_LEVEL WEBEX_LOG_LEVEL
CISCOSPARK_REDIRECT_URI WEBEX_REDIRECT_URI
CISCOSPARK_SCOPE WEBEX_SCOPE

Package

Replace package references to ciscospark with webex

// old
require('ciscospark');

becomes

// new
require('webex');

Constructor

Replace any references to CiscoSpark with Webex

// old
CiscoSpark.init({
  config: { ... }
});

becomes

// new
Webex.init({
  config: { ... }
});

Replace any references to spark-core with webex-core

import CiscoSpark from '@ciscospark/spark-core';
// old
const spark = CiscoSpark.init({
  config: { ... }
});

becomes

import WebexCore from '@webex/webex-core';
// new
const webex = WebexCore.init({
  config: { ... }
});

Plugins

Replace any references to SparkPlugin with WebexPlugin

import {SparkPlugin} from '@ciscospark/spark-core';

const Avatar = SparkPlugin.extend({
  namespace: 'Avatar',
  ...

becomes

import {WebexPlugin} from '@webex/webex-core';

const Avatar = WebexPlugin.extend({
  namespace: 'Avatar',
  ...