Web - TypeScript/React
Last updated
Was this helpful?
Last updated
Was this helpful?
Follow this step-by-step tutorial on how to use CelebritySDK.
A Sceenic account
Code Editor( , )
NPM token for Celebrity SDK
To create a project we recommended using the following stack: React + TypeScript.
Create an empty React + Typescript project
Create .npmrc file. In the project’s root folder
Put your Access Token
inside //registry.npmjs.org/:_authToken=YOUR_ACCESS_TOKEN
.
Install Celebrity SDK via npm i @sscale/celebritysdk
.
Add the following import:
Create participant API instance:
Invite/check/uninvite celebrity to/from your live Watch Together session created using WT_TOKEN:
Add the following import:
Create celebrity API instance:
Login with username/password provided by Sceenic:
Subscribe to the list of available video/audio chat sessions:
Unsubscribe/logout:
For more information on NPM installation look .
Pass Watch Together access token () to participant API instance:
Have a look at the API Documentation .
Need technical support? Contact us at .