1.1.6 • Published 4 years ago
rupsena-sdk-demo v1.1.6
This is the client SDK for demo. It provides interface for the following tasks:
- Generate Fake ID or Room ID.
- Authenticates with Twilio and get the token.
- 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());