public function publishRecordings($recordId = null) { $bbb = new BBB($this->salt, $this->url); $recordingParams = array('recordId' => $recordId, 'publish' => 'true'); $itsAllGood = true; try { $result = $bbb->publishRecordingsWithXmlResponseArray($recordingParams); } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; $itsAllGood = false; } if ($itsAllGood == true) { echo $result['published']; } }