Skip to content

Commit

Permalink
Added new call to rooms to retrieve a join url
Browse files Browse the repository at this point in the history
  • Loading branch information
mThallerWeb committed Mar 5, 2021
1 parent a7157cf commit 37aeeec
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/Api/Workers/BbbRoomWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,30 @@ public function setGuestlistId(?int $guestlistId): BbbRoomWorker
return $this;
}

/**
* @param int $roomId
* @param int $rsvpId
* @param array $extraBbbParameters
* @return array|null
* @throws \Throwable
*/
public function getRoomJoinUrlForRsvp(int $roomId, int $rsvpId, array $extraBbbParameters = []): ?array
{
$curGuestlistId = $this->getGuestlistId();
$this->setGuestlistId(null);
$this->doRequest(
$this->getCrudEntityPath($roomId . '/join/' . $rsvpId),
'POST',
[
'bbb_parameters' => $extraBbbParameters
]
);

$this->setGuestlistId($curGuestlistId);

return $this->extractDataFromLastResponse();
}

/**
* @return string
*/
Expand Down

0 comments on commit 37aeeec

Please sign in to comment.