Home

Awesome

plugNmeet-sdk-js

Plug-N-Meet JS SDK for NodeJS. You can use this SDK to make API requests to the Plug-N-Meet server from your backend application.

Installation:

npm install plugnmeet-sdk-js

Usage

Import

CommonJS:

const plugNmeet = require('plugnmeet-sdk-js').PlugNmeet;

// now
const pnm = new plugNmeet(
  'http://localhost:8080',
  'plugnmeet',
  'zumyyYWqv7KR2kUqvYdq4z4sXg7XTBD2ljT6',
);

ES Modules/TypeScript:

import { PlugNmeet } from 'plugnmeet-sdk-js';

const pnm = new PlugNmeet(
  'http://localhost:8080',
  'plugnmeet',
  'zumyyYWqv7KR2kUqvYdq4z4sXg7XTBD2ljT6',
);

Please check examples directory to see some examples.

Methods/API

MethodsDescription
createRoomTo create new room
getJoinTokenGenerate join token
isRoomActiveTo check if room is active or not
getActiveRoomInfoGet active room information
getActiveRoomsInfoGet all active rooms
fetchPastRoomsInfoGet past rooms information
endRoomEnd active room
fetchAnalyticsFetch analytics
deleteAnalyticsDelete analytics
getAnalyticsDownloadTokenGenerate token to download analytics data
fetchRecordingsFetch recordings
deleteRecordingsDelete recording
getRecordingDownloadTokenGenerate token to download recording
getClientFilesGet client's files