1.1.0 • Published 4 years ago
w2g-client v1.1.0
W2G.tv Client
A Client for Interacting with W2G.tv Rooms
Usage
Initialising Client
- Api Token found on your W2G Profile
var client = new W2GClient("<api_token>");
Create a Room
- Link to a video (optional)
- Backgroundcolor (optional)
- Backgroundopacity (optional)
client.create(link?, color?, opacity?);
var link = client.getLink()
Update Room
- Link to a Video
- roomID of the Room that will be update (Optional if a room was prior created using the client)
client.update(link, roomID?);
TODO:
- Creating Rooms using the API
- Upate Rooms
- Adding Videos/Playlist to Queue