bigbluebutton-api-php icon indicating copy to clipboard operation
bigbluebutton-api-php copied to clipboard

BBB PHP API Laravel Wrapper Issue ---getMeetingInfo always returns {}

Open TechLee2019 opened this issue 5 years ago • 3 comments

Hi, I need to know if a meeting room is still available or no, so i have tried with isMeetingRunning api, but it fails, always return {}, so i moved to GetMeetingInfo Api, but same goes with this.

Any API related to meeting room information, always gives me {} response. Here goes my codes in the followings.

$bbb = new BigBlueButton(); $meetingRunningParameters = new GetMeetingInfoParameters($meetingID, '', $moderator_password); $meetStatus = $bbb->getMeetingInfo($meetingRunningParameters);

I am using PHP 7.44, Laravel Framework 5.58

TechLee2019 avatar Apr 28 '20 15:04 TechLee2019

On the wiki example for GetMeetingInfoParameters [1] it has a wrong number of variables on the constructor [2].

You can try this to get info ( just remove your 2nd variable ):

$meetingRunningParameters = new GetMeetingInfoParameters($meetingID, $moderator_password);

[1] https://github.com/bigbluebutton/bigbluebutton-api-php/wiki/API-Get-Meeting-Info [2] https://github.com/bigbluebutton/bigbluebutton-api-php/blob/master/src/Parameters/GetMeetingInfoParameters.php#L43

Yurujai avatar Apr 28 '20 16:04 Yurujai

I created a new issue for the documentation.

See: https://github.com/bigbluebutton/bigbluebutton-api-php/issues/89

Yurujai avatar Apr 28 '20 16:04 Yurujai

Yurujai, Thanks for your advice. Have tried with that 2 parameters, Because the php api parameters are having only 2. It didn't work, so i checked on the wiki documents and follow the code.

TechLee2019 avatar Apr 28 '20 16:04 TechLee2019