npm.io
1.1.6 • Published 6 years ago

rupsena-sdk-demo

Licence
ISC
Version
1.1.6
Deps
2
Size
15 kB
Vulns
0
Weekly
0

This is the client SDK for demo. It provides interface for the following tasks:

  1. Generate Fake ID or Room ID.
  2. Authenticates with Twilio and get the token.
  3. More to come...

Example 1:

import VWR from 'vwr-client';

Access Twilio service

const VWRTwilio = VWR.VWRTwilio;

const roomId = VWRTwilio.generateFakeId();

const vwrTwilio = new VWRTwilio(roomId, 'http://localhost:3300');

const data = await vwrTwilio.authenticate('twilio/token');

Example 2:

import VWR from 'vwr-client';

Access Utility service

const Utility = VWR.Utility;

Get formatted date

Utility.getFormattedDate(new Date());

Get date string

Utility.getDateString(new Date());