Installing the NPM package

Requirements

To use the WT SDK npm package, an Access Token will be needed. If you dont have a token, please contact us at Support@sceenic.co.

What is the Access Token? Why do you need it?

WT SDK is a private package that is hosted on the npm registry. Only authorized users can access it. In order to access the SDK we will generate an authentication token for you. The authentication token is a hexadecimal string that gives you access to SDK.

Before installation

In your project root folder create .npmrc file. This file will set the specific npm config values for this project. Insert the code snippet bellow to the .npmrc file. Replace YOUR_ACCESS_TOKEN with the token that was provided.1 //registry.npmjs.org/:_authToken=YOUR_ACCESS_TOKEN

Installation

1 npm i @sscale/wtsdk

Documentation

Code samples and full API description can be found here.

Using the SDK

In your .js module add the following line of code1 import WT from '@sscale/wtsdk'

WT - contains all the methods described in the documentation. For example, to create a new session, you should do the following:1 WT.Session.connect(settings, user)

Support

Need technical support? contact us at Support@sceenic.co

Last updated