Skip to content

Commit

Permalink
feat(api): mandatory meeting name
Browse files Browse the repository at this point in the history
Yay! \o/
  • Loading branch information
pedrobmarin committed Jul 21, 2021
1 parent 7e80064 commit 200fd1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ const getSecret = (options) => options.secret || config.api.secret;

const getMeetingID = (options) => options.room || config.url.meeting.name;

const getName = (options) => getMeetingID(options);

const getVersion = (options) => options.version || config.url.version;

const getPassword = (role, options) => {
Expand Down Expand Up @@ -69,6 +71,7 @@ const calculateChecksum = (action, query, options) => {
const getCreateURL = (options) => {
const params = {
meetingID: getMeetingID(options),
name: getName(options),
record: true,
moderatorPW: getPassword('moderator', options),
attendeePW: getPassword('attendee', options),
Expand Down

0 comments on commit 200fd1d

Please sign in to comment.