1.1.5 • Published 2 years ago

oliver-core v1.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Oliver Core

Oliver client for NodeJs application integration.

Initialization

npm install oliver-core
// or
yarn add oliver-core

Create an account from Oliver Platform. (development, staging, production)

import { oliver } from '.';

// Choose environment 'development' | 'staging' | 'production'
// Retrieve your user keys from platform account settings.
oliver.configure('<ENV>', {
  apiKey: '<API_KEY>',
  apiSecret: '<API_SECRET>',
});

Usage

Create Room

import { createInvitation } from '.';

const response = await createRoom({
  /*See Parameters*/
});

if (response.type === 'success') {
  const room = response.value;
  console.log(room);
} else {
  throw Error(`Room creation failed with ${response.error}`);
}
FieldTypeRequiredDescription
titlestringYESName of the room
overviewstringYESDescription of the room
mediaRoomMediaYESRoom media (requires 3 types of images)
media.squarestringYESSquare image url with aspect ratio (1:1)
media.horizontalstringYESHorizontal image with aspect ratio (106:46)
media.thumbnailstringYESThumbnail image with aspect ratio (1:1)
date{start: number, end: number}YESContent launch date, dates of the related event, meeting or product release
date.startnumberYESStart timestamp (unix - seconds) of the launch
date.endnumberNOEnd timestamp (unix - seconds) of the launch
linksArray<RoomLink>YESContent related links that will be listed in the room
privacy_typeRoomPrivacyTypeYESPrivacy type of the room. Determines user access level and type
generate_keysbooleanYESGenerates RoomKeys for the room. Must be true if privacy level is managed
accessCodesArray<string>YESAccess codes for private rooms. Must be not-empty if privacy level is private
locationRoomLocation \ nullYESVenue geo location
tagsArray<string>YESTags for the room, will be using for indexing and search.
configurationRoomConfigurationYESCustomization configurations for the room
configuration.chat_enabledbooleanYESEnable room chat
configuration.share_enabledbooleanYESEnable room sharing by members
configuration.see_more_enabledbooleanYESEnable PublisherSection of room home that members see your other rooms
configuration.bannersArray<RoomBanner>YESBanners for branding
configuration.chat.generalbooleanYESEnable general chat
configuration.chat.ask_moderatorbooleanYESEnable moderator-member direct chat, customer support for your members
configuration.chat.channelsbooleanYESEnable topic based chat channels
configuration.chat.one_to_onebooleanYESEnable one to one private chat between your room members

Invite Admins, Moderators and Members

By creating admin/moderator invitation, collaboration e-mail is sent navigating user to the platform. By creating member invitation, participation e-mail is sent navigating user to join the room.

import { createInvitation } from '.';

const response = await createInvitation({
  /*See Parameters*/
});

if (response.type === 'success') {
  const invitation = response.value;
  console.log(invitation);
} else {
  throw Error(`Room creation failed with ${response.error}`);
}
FieldTypeRequiredDescription
typeInvitationTypeYESInvitation type admin, moderator or member
room_idstringYESRoom identifier
first_namestringYESFirst name of the invited user
last_namestringYESLast name of the invited user
emailstringYESEmail address of the invited user
notesstringNOPersonal notes that will be attached to the invitation email
1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago